/** * Execute an action on the controller. * * @param string $method * @param array $parameters * * @return \Symfony\Component\HttpFoundation\Response */ public function callAction($method, $parameters) { if ($this->autoRender === true) { $this->setupLayout(); } $response = parent::callAction($method, $parameters); if (is_null($response) && $this->autoRender === true && !is_null($this->template)) { $response = $this->response->setContent($this->template); } return $response; }