Symfony2 API
Class

Symfony\Bundle\FrameworkBundle\Controller\Controller

abstract class Controller extends ContainerAware

Controller is a simple implementation of a Controller.

It provides methods to common features needed in controllers.

Methods

setContainer(ContainerInterface $container = null)

Sets the Container.

from ContainerAware

Details

in ContainerAware at line 37
public setContainer(ContainerInterface $container = null)

Sets the Container.

Parameters

ContainerInterface $container A ContainerInterface instance