W3cubDocs

/Symfony 2.7

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/2.7/Symfony/Component/DependencyInjection/ContainerAwareInterface.html