/
container.xml
46 lines (46 loc) · 2.47 KB
/
container.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" ?>
<container xmlns="http://www.symfony-project.org/schema/dic/services">
<parameters>
<parameter key="gherkin.i18n.resources_path">i18n</parameter>
<parameter key="gherkin.translator.class">Symfony\Component\Translation\Translator</parameter>
<parameter key="gherkin.message_selector.class">Symfony\Component\Translation\MessageSelector</parameter>
<parameter key="gherkin.xliff_loader.class">Symfony\Component\Translation\Loader\XliffFileLoader</parameter>
<parameter key="gherkin.feature_node.class">Everzet\Gherkin\Node\FeatureNode</parameter>
<parameter key="gherkin.step_node.class">Everzet\Gherkin\Node\StepNode</parameter>
<parameter key="gherkin.background_node.class">Everzet\Gherkin\Node\BackgroundNode</parameter>
<parameter key="gherkin.scenario_node.class">Everzet\Gherkin\Node\ScenarioNode</parameter>
<parameter key="gherkin.outline_node.class">Everzet\Gherkin\Node\OutlineNode</parameter>
<parameter key="gherkin.pystring_node.class">Everzet\Gherkin\Node\PyStringNode</parameter>
<parameter key="gherkin.table_node.class">Everzet\Gherkin\Node\TableNode</parameter>
<parameter key="gherkin.examples_node.class">Everzet\Gherkin\Node\ExamplesNode</parameter>
</parameters>
<services>
<service id="gherkin.translator" class="%gherkin.translator.class%" shared="false">
<argument>en</argument>
<argument type="service">
<service class="%gherkin.message_selector.class%" />
</argument>
<call method="addLoader">
<argument>xliff</argument>
<argument type="service">
<service class="%gherkin.xliff_loader.class%" />
</argument>
</call>
<call method="addResource">
<argument>xliff</argument>
<argument>%gherkin.i18n.resources_path%/en.xml</argument>
<argument>en</argument>
</call>
<call method="addResource">
<argument>xliff</argument>
<argument>%gherkin.i18n.resources_path%/ru.xml</argument>
<argument>ru</argument>
</call>
<call method="addResource">
<argument>xliff</argument>
<argument>%gherkin.i18n.resources_path%/pt-BR.xml</argument>
<argument>pt-BR</argument>
</call>
</service>
</services>
</container>