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

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

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