Skip to content

UserLocaleSubscriber example not working in documentation #10539

Closed
@Rmy5

Description

@Rmy5

In this documentation: https://symfony.com/doc/current/session/locale_sticky_session.html
The // src/EventSubscriber/UserLocaleSubscriber.php example seems to be missing the implementation of the getSubscribedEvents() method ?

Shouldn't it be be something like this ?:

public static function getSubscribedEvents() { return array( SecurityEvents::INTERACTIVE_LOGIN => 'onInteractiveLogin', ); }

Or maybe the service register is not pointing to the right namespace ?

services: App\EventListener\UserLocaleListener: tags: - { name: kernel.event_listener, event: security.interactive_login, method: onInteractiveLogin, priority: 15 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions