Symfony 5.4 - Update Deprecated Security Code

This commit is contained in:
Jack Anderson 2023-10-09 15:44:00 +01:00 committed by Clemente Raposo
parent 9f313bfb25
commit 32ccadbd89
4 changed files with 34 additions and 31 deletions

View file

@ -28,7 +28,7 @@
namespace App\Tests\unit\core\src\Security;
use App\Security\LegacySessionLogoutHandler;
use App\Security\LegacySessionLogoutListener;
use App\Tests\UnitTester;
use AspectMock\Test;
use AuthenticationController;
@ -40,13 +40,13 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Http\Logout\SessionLogoutHandler;
use Symfony\Component\Security\Http\Logout\SessionLogoutListener;
/**
* Class LegacySessionLogoutHandlerTest
* Class LegacySessionLogoutListenerTest
* @package App\Tests\unit\core\src\Security
*/
class LegacySessionLogoutHandlerTest extends Unit
class LegacySessionLogoutListenerTest extends Unit
{
/**
* @var UnitTester
@ -54,7 +54,7 @@ class LegacySessionLogoutHandlerTest extends Unit
protected $tester;
/**
* @var LegacySessionLogoutHandler
* @var LegacySessionLogoutListener
*/
protected $handler;