Bee-Lab/BeelabUserBundle

View on GitHub
Resources/config/services.xml

Summary

Maintainability
Test Coverage
<?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="Beelab\UserBundle\Twig\BeelabUserTwigExtension" class="Beelab\UserBundle\Twig\BeelabUserTwigExtension" public="false">
            <argument>%beelab_user.layout%</argument>
            <argument>%beelab_user.route%</argument>
            <argument type="service" id="knp_paginator" on-invalid="ignore" />
            <tag name="twig.extension" />
        </service>
        <service id="beelab_user.twig_extension" alias="Beelab\UserBundle\Twig\BeelabUserTwigExtension"/>
        <service id="Beelab\UserBundle\Listener\LastLoginListener" class="Beelab\UserBundle\Listener\LastLoginListener" public="true">
            <tag name="kernel.event_subscriber" />
            <argument type="service" id="beelab_user.manager" />
        </service>
        <service id="beelab_user.login_listener" alias="Beelab\UserBundle\Listener\LastLoginListener"/>
        <service id="Beelab\UserBundle\Manager\LightUserManager" class="Beelab\UserBundle\Manager\LightUserManager" public="false">
            <argument>%beelab_user.user_class%</argument>
            <argument type="service" id="doctrine.orm.entity_manager" />
            <argument type="service" id="security.encoder_factory" />
        </service>
        <service id="beelab_user.light_manager" alias="Beelab\UserBundle\Manager\LightUserManager"/>
        <service id="Beelab\UserBundle\Manager\LightUserManagerInterface" alias="Beelab\UserBundle\Manager\LightUserManager" />
        <service id="Beelab\UserBundle\Manager\UserManager" class="Beelab\UserBundle\Manager\UserManager" public="false">
            <argument>%beelab_user.user_class%</argument>
            <argument type="service" id="doctrine.orm.entity_manager" />
            <argument type="service" id="security.encoder_factory" />
            <argument type="service" id="security.authorization_checker" />
            <argument type="service" id="security.token_storage" />
            <argument type="service" id="knp_paginator" on-invalid="ignore" />
            <argument type="service" id="event_dispatcher" />
        </service>
        <service id="beelab_user.manager" alias="Beelab\UserBundle\Manager\UserManager"/>
        <service id="Beelab\UserBundle\Manager\UserManagerInterface" alias="Beelab\UserBundle\Manager\UserManager" />
    </services>

</container>