Ojs\JournalBundle\Controller\ManagerController::journalSettingsAction PHP Метод

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

public journalSettingsAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response
    public function journalSettingsAction()
    {
        $em = $this->getDoctrine()->getManager();
        $journal = $this->get("ojs.journal_service")->getSelectedJournal(false);
        $this->throw404IfNotFound($journal);
        if (!$this->isGranted('EDIT', $journal)) {
            throw new AccessDeniedException("You not authorized for this page!");
        }
        if ($journal->getCountry() == null) {
            $journal->setCountry($em->getRepository('BulutYazilimLocationBundle:Country')->find($this->getParameter('country_id')));
        }
        $form = $this->createJournalEditForm($journal);
        return $this->render('OjsJournalBundle:Manager:journal_settings.html.twig', array('entity' => $journal, 'edit_form' => $form->createView()));
    }