Symfony 5.3 - Swap deprecated SessionInterface with RequestStack

This commit is contained in:
Jack Anderson 2023-10-04 15:36:24 +01:00 committed by Clemente Raposo
parent 1c3a69bb05
commit 5a03eeaf38
66 changed files with 206 additions and 206 deletions

View file

@ -43,6 +43,7 @@ use Doctrine\Common\Annotations\AnnotationReader;
use Exception;
use App\Authentication\LegacyHandler\Authentication;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
@ -129,7 +130,7 @@ class LegacySessionDenyAccessListenerTest extends Unit
protected $activeSessionAuthentication;
/**
* @var SessionInterface
* @var RequestStack
*/
protected $session;
@ -242,9 +243,9 @@ class LegacySessionDenyAccessListenerTest extends Unit
);
/** @var SessionInterface $session */
/** @var RequestStack $session */
$this->session = $this->makeEmpty(
SessionInterface::class,
RequestStack::class,
[
'invalidate' => function () use ($self) {
$self->invalidateCalled = true;

View file

@ -45,7 +45,7 @@ use GraphQL\Type\Definition\ResolveInfo;
use GraphQL\Type\Definition\StringType;
use GraphQL\Type\Schema;
use App\Authentication\LegacyHandler\Authentication;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpFoundation\RequestStack;
/**
* Class LegacySessionSecurityStageTest
@ -119,7 +119,7 @@ class LegacySessionSecurityStageTest extends Unit
protected $expiredSessionAuthentication;
/**
* @var SessionInterface
* @var RequestStack
*/
protected $session;
@ -217,9 +217,9 @@ class LegacySessionSecurityStageTest extends Unit
]
);
/** @var SessionInterface $session */
/** @var RequestStack $session */
$this->session = $this->makeEmpty(
SessionInterface::class,
RequestStack::class,
[
'invalidate' => function () use ($self) {
$self->invalidateCalled = true;