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