chore: fix deprecations in preparation uf upgrading to symfony 7.3
This commit is contained in:
1 parent
a057088808
commit
4decaa6789
4 files changed
+5
-4
No files matched your search
@@ -27,7 +27,7 @@ class SecurityController extends AbstractController
|
||||
// authentication (see App\EventListener\AuthorizationCodeListener).
|
||||
$session = $request->getSession();
|
||||
$targetPath = $session->get('_security.main.target_path');
|
||||
if (str_contains($targetPath, '/authorize')) {
|
||||
if (null !== $targetPath && str_contains($targetPath, '/authorize')) {
|
||||
$session->set('_oauth2', true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user