PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Resources/config/error.xml

https://github.com/TheBigBrainsCompany/TbbcRestUtilBundle
XML | 24 lines | 20 code | 4 blank | 0 comment | 0 complexity | 91004596d730588cace1a0fbd96a05fa MD5 | raw file
 1<?xml version="1.0" ?>
 2
 3<container xmlns="http://symfony.com/schema/dic/services"
 4    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 5    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
 6    <parameters>
 7        <parameter key="tbbc_rest_util.error.mapping.exception_mapping.class">Tbbc\RestUtil\Error\Mapping\ExceptionMapping</parameter>
 8        <parameter key="tbbc_rest_util.error.mapping.exception_map.class">Tbbc\RestUtil\Error\Mapping\ExceptionMap</parameter>
 9        <parameter key="tbbc_rest_util.error.error_resolver.class">Tbbc\RestUtil\Error\ErrorResolver</parameter>
10        <parameter key="tbbc_rest_util.error.default_error_factory.class">Tbbc\RestUtil\Error\DefaultErrorFactory</parameter>
11    </parameters>
12
13    <services>
14        <service id="tbbc_rest_util.error.mapping.exception_map" class="%tbbc_rest_util.error.mapping.exception_map.class%" />
15
16        <service id="tbbc_rest_util.error.error_resolver" class="%tbbc_rest_util.error.error_resolver.class%">
17            <argument type="service" id="tbbc_rest_util.error.mapping.exception_map" />
18        </service>
19
20        <service id="tbbc_rest_util.error.default_error_factory" class="%tbbc_rest_util.error.default_error_factory.class%">
21            <tag name="tbbc_rest_util.error_factory" />
22        </service>
23    </services>
24</container>