private removeAuthenticationAdapter ( string $adapter ) : ZF\ApiProblem\ApiProblemResponse | Zend\Http\Response | ||
$adapter | string | |
Результат | 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);
}