public function phpinfoAction() { if (!$this->getUser()->isAdmin()) { throw new \Exception("Permission denied"); } phpinfo(); exit; }