<?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="exceptionizer.thrower" class="Mabs\ExceptionizerBundle\Exceptionizer\Thrower">
<argument type="service" id="event_dispatcher"/>
</service>
<service id="exceptionizer.catcher" class="Mabs\ExceptionizerBundle\Exceptionizer\Catcher">
<argument type="service" id="event_dispatcher"/>
</service>
<service id="exceptionizer" class="Mabs\ExceptionizerBundle\Service\Exceptionizer">
<argument type="service" id="exceptionizer.thrower"/>
<argument type="service" id="exceptionizer.catcher"/>
<argument>%mabs_exceptionizer%</argument>
</service>
<service id="exceptionizer.listener" class="Mabs\ExceptionizerBundle\EventListener\MabsExceptionizerListener">
<argument type="service" id="logger"/>
<tag name="kernel.event_listener" event="exceptionizer.pre_throw" method="onPreThrowException" />
</service>
</services>
</container>
|