W3cubDocs

/Symfony 2.7

Symfony\Component\DependencyInjection\ContainerAware

abstract class ContainerAware implements ContainerAwareInterface

A simple implementation of ContainerAwareInterface.

Methods

setContainer(ContainerInterface $container = null)

Sets the Container associated with this Controller.

Details

public setContainer(ContainerInterface $container = null)

Sets the Container associated with this Controller.

Parameters

ContainerInterface $container A ContainerInterface instance

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