ZF\Apigility\Admin\Controller\AuthenticationController::fetchAuthenticationEntity PHP Method

fetchAuthenticationEntity() private method

Fetch an authentication entity
private fetchAuthenticationEntity ( string $adapter ) : ZF\ApiProblem\ApiProblemResponse | ZF\ContentNegotiation\ViewModel
$adapter string
return ZF\ApiProblem\ApiProblemResponse | ZF\ContentNegotiation\ViewModel
    private function fetchAuthenticationEntity($adapter)
    {
        $entity = $this->model->fetchAuthenticationAdapter($adapter);
        if (!$entity) {
            return new ApiProblemResponse(new ApiProblem(404, 'No authentication adapter found'));
        }
        return $this->createEntity($entity);
    }