Skip to content

Commit 1cb1efb

Browse files
authored
Merge pull request #2932 from oleg-andreyev/update-flash-listener
Updated FlashListener constructor to accept SessionInterface
2 parents 1b7c859 + cba6691 commit 1cb1efb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

EventListener/FlashListener.php

Lines changed: 4 additions & 4 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\Session;
17+
use Symfony\Component\HttpFoundation\Session\SessionInterface;
1818
use Symfony\Component\Translation\TranslatorInterface;
1919

2020
class FlashListener implements EventSubscriberInterface
@@ -33,7 +33,7 @@ class FlashListener implements EventSubscriberInterface
3333
);
3434

3535
/**
36-
* @var Session
36+
* @var SessionInterface
3737
*/
3838
private $session;
3939

@@ -45,10 +45,10 @@ class FlashListener implements EventSubscriberInterface
4545
/**
4646
* FlashListener constructor.
4747
*
48-
* @param Session $session
48+
* @param SessionInterface $session
4949
* @param TranslatorInterface $translator
5050
*/
51-
public function __construct(Session $session, TranslatorInterface $translator)
51+
public function __construct(SessionInterface $session, TranslatorInterface $translator)
5252
{
5353
$this->session = $session;
5454
$this->translator = $translator;

0 commit comments

Comments
 (0)