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