merged hhamon/controller_getrequest_method

This commit is contained in:
Fabien Potencier 2011-06-07 19:48:40 +02:00
commit aaf1300a20

View File

@ -138,6 +138,16 @@ class Controller extends ContainerAware
return $this->get('form.factory')->createBuilder('form', $data, $options);
}
/**
* Shortcut to return the request service.
*
* @return Symfony\Component\HttpFoundation\Request
*/
public function getRequest()
{
return $this->get('request');
}
/**
* Shortcut to return the Doctrine Registry service.
*