mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-05 07:54:35 +02:00
Use $session->getFlashBag() instead of deprcated FlashBag service.
This commit is contained in:
parent
cd2b3217e1
commit
7f263e9916
3 changed files with 9 additions and 7 deletions
|
@ -46,7 +46,7 @@ use App\Entity\LogSystem\UserLoginLogEntry;
|
|||
use App\Entity\UserSystem\User;
|
||||
use App\Services\LogSystem\EventLogger;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
|
||||
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
||||
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
|
||||
use Symfony\Component\Security\Http\SecurityEvents;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
@ -61,10 +61,10 @@ final class LoginSuccessSubscriber implements EventSubscriberInterface
|
|||
private $eventLogger;
|
||||
private $gpdr_compliance;
|
||||
|
||||
public function __construct(TranslatorInterface $translator, FlashBagInterface $flashBag, EventLogger $eventLogger, bool $gpdr_compliance)
|
||||
public function __construct(TranslatorInterface $translator, SessionInterface $session, EventLogger $eventLogger, bool $gpdr_compliance)
|
||||
{
|
||||
$this->translator = $translator;
|
||||
$this->flashBag = $flashBag;
|
||||
$this->flashBag = $session->getFlashBag();
|
||||
$this->eventLogger = $eventLogger;
|
||||
$this->gpdr_compliance = $gpdr_compliance;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue