private function removeAuthenticationAdapter($adapter) { if (!$this->model->removeAuthenticationAdapter($adapter)) { return new ApiProblemResponse(new ApiProblem(404, 'No authentication adapter found')); } return $this->getResponse()->setStatusCode(204); }