<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <service id="lexik_jwt_authentication.handler.authentication_success" class="Lexik\Bundle\JWTAuthenticationBundle\Security\Http\Authentication\AuthenticationSuccessHandler">
            <argument type="service" id="lexik_jwt_authentication.jwt_manager"/>
            <argument type="service" id="event_dispatcher"/>
            <argument type="collection"/> <!-- Cookie providers -->
            <argument>true</argument>
            <tag name="monolog.logger" channel="security" />
        </service>
        <service id="Lexik\Bundle\JWTAuthenticationBundle\Security\Http\Authentication\AuthenticationSuccessHandler" alias="lexik_jwt_authentication.handler.authentication_success" />

        <service id="lexik_jwt_authentication.handler.authentication_failure" class="Lexik\Bundle\JWTAuthenticationBundle\Security\Http\Authentication\AuthenticationFailureHandler">
            <tag name="monolog.logger" channel="security" />
            <argument type="service" id="event_dispatcher"/>
            <argument type="service" id="translator" on-invalid="null" />
        </service>
        <service id="Lexik\Bundle\JWTAuthenticationBundle\Security\Http\Authentication\AuthenticationFailureHandler" alias="lexik_jwt_authentication.handler.authentication_failure" />
    </services>
</container>
