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

removeAuthenticationAdapter() private method

Remove an existing authentication adapter
private removeAuthenticationAdapter ( string $adapter ) : ZF\ApiProblem\ApiProblemResponse | Zend\Http\Response
$adapter string
return ZF\ApiProblem\ApiProblemResponse | Zend\Http\Response
    private function removeAuthenticationAdapter($adapter)
    {
        if (!$this->model->removeAuthenticationAdapter($adapter)) {
            return new ApiProblemResponse(new ApiProblem(404, 'No authentication adapter found'));
        }
        return $this->getResponse()->setStatusCode(204);
    }