public function newPageAction() { if (!$this->isGranted('CREATE', new AdminPage())) { throw new AccessDeniedException(); } return $this->createForm(new AdminPageType(), null, ['csrf_protection' => false]); }