chore: fix deprecations in preparation uf upgrading to symfony 7.3
This commit is contained in:
@@ -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