Controller

class Controller implements ContainerAwareInterface

Controller is a simple implementation of a Controller.

It provides methods to common features needed in controllers.

Traits

ContainerAwareTrait ContainerAware trait.

Methods

setContainer(ContainerInterface $container = null)

Sets the container.

from ContainerAwareTrait

Details

setContainer(ContainerInterface $container = null)

Sets the container.

Parameters

ContainerInterface $container A ContainerInterface instance or null

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Bundle/FrameworkBundle/Controller/Controller.html