Ojs\JournalBundle\Controller\IssueController::newAction PHP Метод

newAction() публичный Метод

Displays a form to create a new Issue entity.
public newAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response
    public function newAction()
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('CREATE', $journal, 'issues')) {
            throw new AccessDeniedException("You are not authorized for create a issue on this journal!");
        }
        $entity = new Issue();
        $form = $this->createCreateForm($entity, $journal->getId());
        return $this->render('OjsJournalBundle:Issue:new.html.twig', array('entity' => $entity, 'form' => $form->createView()));
    }