fix server reference

This commit is contained in:
Julián Gutiérrez 2016-01-20 00:16:12 +01:00
parent 1e1043c04f
commit 94cc7c2bc7

View File

@ -34,7 +34,7 @@ class AuthenticationServerMiddleware
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next)
{ {
try { try {
$response = $server->respondToRequest($request, $response); $response = $this->server->respondToRequest($request, $response);
} catch (OAuthServerException $exception) { } catch (OAuthServerException $exception) {
return $exception->generateHttpResponse($response); return $exception->generateHttpResponse($response);
} catch (\Exception $exception) { } catch (\Exception $exception) {