ContainerBuilder::addResource()

ContainerBuilder addResource(ResourceInterface $resource) Adds a resource for this configuration. Parameters ResourceInterface $resource A resource instance Return Value ContainerBuilder The current instance

ContainerBuilder::findDefinition()

Definition findDefinition(string $id) Gets a service definition by id or alias. The method "unaliases" recursively to return a Definition instance. Parameters string $id The service identifier or alias Return Value Definition A Definition instance Exceptions ServiceNotFoundException if the service definition does not exist

ContainerBuilder::addObjectResource()

ContainerBuilder addObjectResource(object $object) Adds the object class hierarchy as resources. Parameters object $object An object instance Return Value ContainerBuilder The current instance

ContainerBuilder::addDefinitions()

addDefinitions(array $definitions) Adds the service definitions. Parameters array $definitions An array of service definitions

ContainerBuilder::addExpressionLanguageProvider()

addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) Parameters ExpressionFunctionProviderInterface $provider

ContainerBuilder::addClassResource()

ContainerBuilder addClassResource(ReflectionClass $class) Adds the given class hierarchy as resources. Parameters ReflectionClass $class Return Value ContainerBuilder The current instance

ContainerBuilder::addCompilerPass()

ContainerBuilder addCompilerPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION) Adds a compiler pass. Parameters CompilerPassInterface $pass A compiler pass string $type The type of compiler pass Return Value ContainerBuilder The current instance

ContainerBuilder

class ContainerBuilder extends Container implements TaggedContainerInterface ContainerBuilder is a DI container that provides an API to easily describe services. Methods __construct(ParameterBagInterface $parameterBag = null) from Container compile() Compiles the container. bool isFrozen() Returns true if the container parameter bag are frozen. from Container ParameterBagInterface getParameterBag() Gets the service container parameter bag. from Container mixed getParame

ContainerBuilder::addAliases()

addAliases(array $aliases) Adds the service aliases. Parameters array $aliases An array of aliases

ContainerAwareHttpKernel deprecated

class ContainerAwareHttpKernel extends HttpKernel deprecated since version 2.7, to be removed in 3.0. Adds a managed request scope. Methods __construct(EventDispatcherInterface $dispatcher, ContainerInterface $container, ControllerResolverInterface $controllerResolver, RequestStack $requestStack = null, bool $triggerDeprecation = true) Constructor. Response handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true) Handles a Request to convert