mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-04 04:31:00 +05:30
fix server reference
This commit is contained in:
parent
1e1043c04f
commit
94cc7c2bc7
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user