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

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

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