mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 10:14:13 +08:00
Symfony 5.3 - Swap deprecated SessionInterface with RequestStack
This commit is contained in:
parent
1c3a69bb05
commit
5a03eeaf38
66 changed files with 206 additions and 206 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue