W3cubDocs

/Symfony 4.1

ContainerAwareInterface

interface ContainerAwareInterface

ContainerAwareInterface should be implemented by classes that depends on a Container.

Methods

setContainer(ContainerInterface $container = null)

Sets the container.

Details

setContainer(ContainerInterface $container = null)

Sets the container.

Parameters

ContainerInterface $container

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/ContainerAwareInterface.html