From 0bfdd666c90e086d04073f6e25f90c50456a9ae3 Mon Sep 17 00:00:00 2001 From: George-Cristian Tudoran <4936352+Gasjki@users.noreply.github.com> Date: Tue, 23 Oct 2018 12:52:21 +0300 Subject: [PATCH] Removed interface You don't have to use that interface for this case. Even if you add it, you need to implement `getSubscribedEvents()` method. --- session/locale_sticky_session.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/session/locale_sticky_session.rst b/session/locale_sticky_session.rst index b81c8e6cb3c..7ea5eb8ec05 100644 --- a/session/locale_sticky_session.rst +++ b/session/locale_sticky_session.rst @@ -145,7 +145,6 @@ event:: // src/EventSubscriber/UserLocaleSubscriber.php namespace App\EventSubscriber; - use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; use Symfony\Component\Security\Http\SecurityEvents; @@ -154,7 +153,7 @@ event:: * Stores the locale of the user in the session after the * login. This can be used by the LocaleSubscriber afterwards. */ - class UserLocaleSubscriber implements EventSubscriberInterface + class UserLocaleSubscriber { private $session;