ContainerInterface is the interface implemented by service container classes.
- author Fabien Potencier
- author Johannes M.
Schmitt
AbstractInterface
- Implements
Psr\Container\ContainerInterface
Constants |
public Symfony |
public Symfony |
public Symfony |
public Symfony |
public Symfony |
Methods |
public abstract get(string $id, int $invalidBehavior = 1self::EXCEPTION_ON_INVALID_REFERENCE) : ?object
|
public abstract getParameter(string $name) : UnitEnum|array|string|int|float|bool|?null
|
public abstract has(string $id) : bool |
public abstract hasParameter(string $name) : bool |
public abstract initialized(string $id) : bool Check for whether or not a service has been initialized. |
public abstract set(string $id, ?object $service) : void |
public abstract setParameter(string $name, UnitEnum|array|string|int|float|bool|?null $value) : void |