ContainerAware deprecated

class ContainerAware implements ContainerAwareInterface deprecated since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead. A simple implementation of ContainerAwareInterface. Methods setContainer(ContainerInterface $container = null) Sets the container. Details setContainer(ContainerInterface $container = null) Sets the container. Parameters ContainerInterface $container A ContainerInterface instance or null

Container::isFrozen()

bool isFrozen() Returns true if the container parameter bag are frozen. Return Value bool true if the container parameter bag are frozen, false otherwise

Container::underscore()

static string underscore(string $id) A string to underscore. Parameters string $id The string to underscore Return Value string The underscored string

Container::setParameter()

setParameter(string $name, mixed $value) Sets a parameter. Parameters string $name The parameter name mixed $value The parameter value

Container::getParameter()

mixed getParameter(string $name) Gets a parameter. Parameters string $name The parameter name Return Value mixed The parameter value Exceptions InvalidArgumentException if the parameter is not defined

Container::initialized()

bool initialized(string $id) Returns true if the given service has actually been initialized. Parameters string $id Return Value bool true if the service has been initialized, false otherwise

Container::hasParameter()

bool hasParameter(string $name) Checks if a parameter exists. Parameters string $name The parameter name Return Value bool The presence of parameter in container

Container::getServiceIds()

array getServiceIds() Gets all service ids. Return Value array An array of all defined service ids

Container::has()

bool has(string $id) Returns true if the given service is defined. Parameters string $id The service identifier Return Value bool true if the service is defined, false otherwise

Container::getParameterBag()

ParameterBagInterface getParameterBag() Gets the service container parameter bag. Return Value ParameterBagInterface A ParameterBagInterface instance