We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f5cf62 commit 2a6ec87Copy full SHA for 2a6ec87
session/locale_sticky_session.rst
@@ -202,13 +202,14 @@ Then register the listener:
202
203
// app/config/services.php
204
use AppBundle\EventListener\UserLocaleListener;
205
+ use Symfony\Component\DependencyInjection\Reference;
206
207
$container
208
->register('app.user_locale_listener', UserLocaleListener::class)
- ->addArgument('session')
209
+ ->addArgument(new Reference('session'))
210
->addTag(
211
'kernel.event_listener',
- array('event' => 'security.interactive_login', 'method' => 'onInteractiveLogin'
212
+ array('event' => 'security.interactive_login', 'method' => 'onInteractiveLogin')
213
);
214
215
.. caution::
0 commit comments