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

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

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