Ojs\ApiBundle\Controller\Journal\JournalIssueFileRestController::getOr404 PHP Метод

getOr404() защищенный Метод

Fetch a IssueFile or throw an 404 Exception.
protected getOr404 ( mixed $id, boolean $normalize = false ) : IssueFile
$id mixed
$normalize boolean
Результат Ojs\JournalBundle\Entity\IssueFile
    protected function getOr404($id, $normalize = false)
    {
        if (!($entity = $this->container->get('ojs_api.journal_issue_file.handler')->get($id, $normalize))) {
            throw new NotFoundHttpException(sprintf('The resource \'%s\' was not found.', $id));
        }
        return $entity;
    }