parameters:
    ezpublish_rest.security.authentication.listener.session.class: eZ\Publish\Core\REST\Server\Security\RestAuthenticator
    ezpublish_rest.security.authentication.logout_handler.class: eZ\Publish\Core\REST\Server\Security\RestLogoutHandler

services:
    # Following service will be aliased at compile time to "ezpublish_rest.session_authenticator" by the Security factory.
    ezpublish_rest.security.authentication.listener.session:
        class: %ezpublish_rest.security.authentication.listener.session.class%
        arguments:
            - @security.context
            - @security.authentication.manager
            - ~ # Will be replaced at compile time by security provider key
            - @event_dispatcher
            - @ezpublish.config.resolver
            - @session.storage
            - @?logger
        abstract: true

    ezpublish_rest.security.authentication.logout_handler:
        class: %ezpublish_rest.security.authentication.logout_handler.class%
