public function responseLoginCheck(Request $request, Response $response) { $aRequest = $request->getParsedBody(); //@todo: validation of input params $aResponse = [self::RESPONSE_SUCCESS => $this->oUser->checkUserToken($aRequest['token'])]; $response->getBody()->write(json_encode($aResponse)); return $response; }