- WordPress 6.9.4 (es_ES) with Kadence theme - Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto - Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold - Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI) - Plugins: Kadence Blocks, Polylang, Contact Form 7 - Custom CSS with full brand styling and responsive layout - HTTPS enforced via wp-config.php proxy detection
StellarWP Container Contract
Service Container interface for use in StellarWP libraries.
Note that this is not a Container implementation of its own. It is merely abstractions that describe the components of a Dependency Injection Container.
Installation
It's recommended that you install this contract as a project dependency via Composer:
composer require stellarwp/container-contract
Note: If you typically use a tool like Strauss, you should not customize the namespace of this library in order to have proper compatibility with StellarWP libraries.
Usage
Simply use the ContainerInterface and implement it or use it as a type hint.
use StellarWP\ContainerContract\ContainerInterface;
class Container implements ContainerInterface {
public function bind( string $id, $implementation ) {}
public function get( string $id ) {}
public function has( string $id ) {}
public function singleton( string $id, $implementation ) {}
}