Skip to content

Commit

Permalink
Deprecated use of ListenerInterface
Browse files Browse the repository at this point in the history
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.
4 changes: 2 additions & 2 deletions Security/Firewall/OAuthListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @author Arnaud Le Blanc <[email protected]>
*/
class OAuthListener implements ListenerInterface
class OAuthListener
{
/**
* @var TokenStorageInterface
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1ecb68b

Please sign in to comment.