public function initialize(Request $request)
{
$this->request = $request;
$this->authChecker = $this-
>get('security.authorization_checker');
$this->forms = array();
$this->navigation = array();
$this->manager = $this->getDoctrine()->getManager();
$this->repositories = array();
$this->session = $this->request->getSession();
$this->user = $this->getUser();
$this->view = array();
}
/**
* @param string $view
* @param array $parameters
* @param Response $response
* @return Response
*/
public function render($view, array $parameters = array(),
Response $response = null)
{
$parameters = array_merge($parameters, array(
'forms' => $this->forms,
'view' => $this->view,
'navigation'=>$this->navigation
));
return parent::render($view, $parameters, $response);