Ojs\ApiBundle\Controller\Admin\JournalRestController::getOr404 PHP 메소드

getOr404() 보호된 메소드

Fetch a Journal or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : Journal
$id mixed
$normalize boolean
리턴 Ojs\JournalBundle\Entity\Journal
    protected function getOr404($id, $normalize = false)
    {
        if (!($entity = $this->container->get('ojs_api.journal.handler')->get($id, $normalize))) {
            throw new NotFoundHttpException(sprintf('The resource \'%s\' was not found.', $id));
        }
        return $entity;
    }