aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Resources/config/services.yml
blob: d3925de3b1f8991ea9bd9029a73418088bd2be4c (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                        
                     

                                                     
                                                                         
                             






                                                                          





                                                                          
 
                                         







                                                                     

                                                   

                                               
 

                                                                              
                  
                              
                       

                                                                                                                      
services:
    wallabag_user.auth_code_mailer:
        class: Wallabag\UserBundle\Mailer\AuthCodeMailer
        arguments:
            - "@mailer"
            - "@twig"
            - "%scheb_two_factor.email.sender_email%"
            - "%scheb_two_factor.email.sender_name%"
            - '@=service(''craue_config'').get(''wallabag_support_url'')'
            - '%domain_name%'

    wallabag_user.password_resetting:
        class: Wallabag\UserBundle\EventListener\PasswordResettingListener
        arguments:
            - "@router"
        tags:
            - { name: kernel.event_subscriber }

    wallabag_user.user_repository:
        class: Wallabag\UserBundle\Repository\UserRepository
        factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
        arguments:
            - WallabagUserBundle:User

    wallabag_user.listener.create_config:
        class: Wallabag\UserBundle\EventListener\CreateConfigListener
        arguments:
            - "@doctrine.orm.entity_manager"
            - "%wallabag_core.theme%"
            - "%wallabag_core.items_on_page%"
            - "%wallabag_core.rss_limit%"
            - "%wallabag_core.language%"
            - "%wallabag_core.reading_speed%"
            - "%wallabag_core.action_mark_as_read%"
            - "%wallabag_core.list_mode%"
        tags:
            - { name: kernel.event_subscriber }

    wallabag_user.listener.authentication_failure_event_listener:
        class: Wallabag\UserBundle\EventListener\AuthenticationFailureListener
        arguments:
            - "@request_stack"
            - "@logger"
        tags:
            - { name: kernel.event_listener, event: security.authentication.failure, method: onAuthenticationFailure }