Skip to content

Commit 25a4609

Browse files
committed
Changed the typehint for the Session in the FlashListener
SessionInterface does not contain the getFlashBag() method.
1 parent e793772 commit 25a4609

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

EventListener/FlashListener.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use FOS\UserBundle\FOSUserEvents;
1515
use Symfony\Component\EventDispatcher\Event;
1616
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
17-
use Symfony\Component\HttpFoundation\Session\SessionInterface;
17+
use Symfony\Component\HttpFoundation\Session\Session;
1818
use Symfony\Component\Translation\TranslatorInterface;
1919

2020
class FlashListener implements EventSubscriberInterface
@@ -29,13 +29,10 @@ class FlashListener implements EventSubscriberInterface
2929
FOSUserEvents::RESETTING_RESET_COMPLETED => 'resetting.flash.success',
3030
);
3131

32-
/**
33-
* @var \Symfony\Component\HttpFoundation\Session\Session
34-
*/
3532
private $session;
3633
private $translator;
3734

38-
public function __construct(SessionInterface $session, TranslatorInterface $translator)
35+
public function __construct(Session $session, TranslatorInterface $translator)
3936
{
4037
$this->session = $session;
4138
$this->translator = $translator;

0 commit comments

Comments
 (0)