mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-01 08:00:47 +08:00
Symfony 6.4 - Fix RequestSubscriber session access
This commit is contained in:
parent
3ac092b506
commit
cda637ca98
1 changed files with 4 additions and 4 deletions
|
@ -38,11 +38,11 @@ class RequestSubscriber implements EventSubscriberInterface
|
|||
{
|
||||
use TargetPathTrait;
|
||||
|
||||
private $session;
|
||||
private $requestStack;
|
||||
|
||||
public function __construct(RequestStack $session)
|
||||
public function __construct(RequestStack $requestStack)
|
||||
{
|
||||
$this->session = $session;
|
||||
$this->requestStack = $requestStack;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -62,6 +62,6 @@ class RequestSubscriber implements EventSubscriberInterface
|
|||
return;
|
||||
}
|
||||
|
||||
$this->saveTargetPath($this->session, 'main', $request->getUri());
|
||||
$this->saveTargetPath($this->requestStack->getSession(), 'main', $request->getUri());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue