W3cubDocs

/Symfony 3.0

Symfony\Component\DependencyInjection\ContainerAwareInterface

interface ContainerAwareInterface

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

Methods

setContainer(ContainerInterface $container = null)

Sets the container.

Details

public setContainer(ContainerInterface $container = null)

Sets the container.

Parameters

ContainerInterface $container A ContainerInterface instance or null

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/ContainerAwareInterface.html