Ojs\SiteBundle\Controller\HostingController::pageAction PHP Метод

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

public pageAction ( Request $request, $slug ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response
    public function pageAction(Request $request, $slug)
    {
        $em = $this->getDoctrine()->getManager();
        $currentHost = $request->getHttpHost();
        $journal = $em->getRepository(Journal::class)->findOneBy(array('domain' => $currentHost, 'status' => JournalStatuses::STATUS_PUBLISHED));
        $this->throw404IfNotFound($journal);
        $response = $this->forward('OjsSiteBundle:JournalCms:journalPageDetail', array('journal_slug' => $journal->getSlug(), 'slug' => $slug, 'isJournalHosting' => true));
        return $response;
    }