Bee-Lab/BeelabSimplePageBundle

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_simple_page.validator.no_existing_route" class="Beelab\SimplePageBundle\Validator\Constraints\NoExistingRouteValidator" public="true">
            <argument type="service" id="router" />
            <argument>%beelab_simple_page.show_route%</argument>
            <tag name="validator.constraint_validator" alias="no_existing_route" />
        </service>
        <service id="Beelab\SimplePageBundle\Controller\DefaultController" class="Beelab\SimplePageBundle\Controller\DefaultController" public="false">
            <argument type="service" id="doctrine" />
            <argument type="service" id="twig" />
            <argument>%beelab_simple_page.page_class%</argument>
            <argument>%beelab_simple_page.resources_prefix%</argument>
        </service>
    </services>

</container>