Ojs\JournalBundle\Controller\StatsController::indexAction PHP Метод

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

public indexAction ( )
    public function indexAction()
    {
        $journalService = $this->get('ojs.journal_service');
        $journal = $journalService->getSelectedJournal();
        $cache = $this->get('file_cache');
        if (!$cache->contains('journal_' . $journal->getId() . '_statistics')) {
            $this->cacheJournalStats($journal);
        }
        return $this->render('OjsJournalBundle:Stats:stats.html.twig', $cache->fetch('journal_' . $journal->getId() . '_statistics'));
    }