public newAnnouncementAction ( ) : |
||
return |
public function newAnnouncementAction()
{
if (!$this->isGranted('CREATE', new AdminAnnouncement())) {
throw new AccessDeniedException();
}
return $this->createForm(new AdminAnnouncementType(), null, ['csrf_protection' => false]);
}