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