Remove some deprecation

This commit is contained in:
Jeremy Benoist
2022-11-14 23:11:46 +01:00
committed by Kevin Decherf
parent 6c63b0e8f5
commit b41696fd1c
6 changed files with 14 additions and 17 deletions

View File

@ -2,7 +2,7 @@
namespace Wallabag\CoreBundle\Event\Listener;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
/**
@ -15,12 +15,9 @@ use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
*/
class UserLocaleListener
{
/**
* @var Session
*/
private $session;
private SessionInterface $session;
public function __construct(Session $session)
public function __construct(SessionInterface $session)
{
$this->session = $session;
}