W3cubDocs

/Symfony 3.3

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.
ControllerTrait Common features needed in controllers.

Properties

ContainerInterface $container from ControllerTrait

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.3/Symfony/Bundle/FrameworkBundle/Controller/Controller.html