<?xml version="1.0" encoding="UTF-8" ?>

<config xmlns="http://thelia.net/schema/dic/config"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">

    <loops>
        <loop class="Colissimo\Loop\Price" name="colissimo"/>
        <loop class="Colissimo\Loop\CheckRightsLoop" name="colissimo.check.rights" />
        <loop class="Colissimo\Loop\NotSendLoop" name="colissimo.notsend.loop" />
    </loops>

    <forms>
        <form name="colissimo.freeshipping.form" class="Colissimo\Form\FreeShipping" />
        <form name="colissimo.export.form" class="Colissimo\Form\Export" />
    </forms>

    <commands>
        <!--
        <command class="MyModule\Command\MySuperCommand" />
        -->
    </commands>

    <templateDirectives>
        <!-- Sample definition
        <templateDirectives class="MyModule\Directive\MyTemplateDirective" name="my_filter"/>
        -->
    </templateDirectives>

    <services>
        <service id="send.colissimo.mail" class="Colissimo\Listener\SendMail" scope="request">
            <argument type="service" id="thelia.parser" />
            <argument type="service" id="mailer"/>
            <tag name="kernel.event_subscriber"/>
        </service>
    </services>
</config>
