Ojs\ApiBundle\Controller\Admin\IndexRestController::getOr404 PHP Метод

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

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