merged hhamon/controller_getrequest_method
This commit is contained in:
commit
aaf1300a20
@ -138,6 +138,16 @@ class Controller extends ContainerAware
|
|||||||
return $this->get('form.factory')->createBuilder('form', $data, $options);
|
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.
|
* Shortcut to return the Doctrine Registry service.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user