From 2d9a94983ad43ecd8568484879019a3110df2ad9 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Sun, 7 Jul 2019 17:27:10 -0700 Subject: [PATCH] Remove deprecation notice from sf 4.3 --- Security/Firewall/OAuth2Listener.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Security/Firewall/OAuth2Listener.php b/Security/Firewall/OAuth2Listener.php index dead5d35..94ef9639 100644 --- a/Security/Firewall/OAuth2Listener.php +++ b/Security/Firewall/OAuth2Listener.php @@ -43,9 +43,14 @@ public function __construct( } /** - * {@inheritdoc} + * BC layer for Symfony < 4.3 */ public function handle(GetResponseEvent $event) + { + $this->__invoke($event); + } + + public function __invoke(GetResponseEvent $event) { $request = $this->httpMessageFactory->createRequest($event->getRequest());