interface ContainerInterface
ContainerInterface is the interface implemented by service container classes.
EXCEPTION_ON_INVALID_REFERENCE | |
NULL_ON_INVALID_REFERENCE | |
IGNORE_ON_INVALID_REFERENCE |
set(string $id, object $service) Sets a service. | ||
object | get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) Gets a service. | |
bool | has(string $id) Returns true if the given service is defined. | |
bool | initialized(string $id) Check for whether or not a service has been initialized. | |
mixed | getParameter(string $name) Gets a parameter. | |
bool | hasParameter(string $name) Checks if a parameter exists. | |
setParameter(string $name, mixed $value) Sets a parameter. |
Sets a service.
Gets a service.
Returns true if the given service is defined.
Check for whether or not a service has been initialized.
Gets a parameter.
Checks if a parameter exists.
Sets a parameter.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/DependencyInjection/ContainerInterface.html