forked from FriendsOfSymfony/FOSOAuthServerBundle
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
turn the listener into callable
- Loading branch information
Klapaudius
committed
Nov 11, 2019
1 parent
b7db007
commit 1ecb68b
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
* | ||
* @author Arnaud Le Blanc <[email protected]> | ||
*/ | ||
class OAuthListener implements ListenerInterface | ||
class OAuthListener | ||
{ | ||
/** | ||
* @var TokenStorageInterface | ||
|
@@ -60,7 +60,7 @@ public function __construct(TokenStorageInterface $tokenStorage, AuthenticationM | |
/** | ||
* @param GetResponseEvent $event the event | ||
*/ | ||
public function handle(GetResponseEvent $event) | ||
public function __invoke(GetResponseEvent $event) | ||
{ | ||
if (null === $oauthToken = $this->serverService->getBearerToken($event->getRequest(), true)) { | ||
return; | ||
|