2011-01-14 14:07:09 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2011-03-06 11:40:06 +00:00
|
|
|
<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">
|
2010-01-04 14:26:20 +00:00
|
|
|
<parameters>
|
|
|
|
<parameter key="baz_class">BazClass</parameter>
|
|
|
|
<parameter key="foo_class">FooClass</parameter>
|
|
|
|
<parameter key="foo">bar</parameter>
|
|
|
|
</parameters>
|
|
|
|
<services>
|
2013-01-05 08:50:11 +00:00
|
|
|
<service id="foo" class="FooClass" factory-method="getInstance">
|
2011-01-14 14:07:09 +00:00
|
|
|
<tag name="foo" foo="foo"/>
|
|
|
|
<tag name="foo" bar="bar"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
<argument>foo</argument>
|
2011-01-14 14:07:09 +00:00
|
|
|
<argument type="service" id="foo.baz"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
<argument type="collection">
|
|
|
|
<argument key="%foo%">foo is %foo%</argument>
|
2013-01-05 08:50:11 +00:00
|
|
|
<argument key="foobar">%foo%</argument>
|
2010-01-04 14:26:20 +00:00
|
|
|
</argument>
|
|
|
|
<argument>true</argument>
|
2011-01-14 14:07:09 +00:00
|
|
|
<argument type="service" id="service_container"/>
|
2011-03-10 14:31:00 +00:00
|
|
|
<property name="foo">bar</property>
|
|
|
|
<property name="moo" type="service" id="foo.baz"/>
|
2013-11-23 20:44:08 +00:00
|
|
|
<property name="qux" type="collection">
|
|
|
|
<property key="%foo%">foo is %foo%</property>
|
|
|
|
<property key="foobar">%foo%</property>
|
|
|
|
</property>
|
2010-01-04 14:26:20 +00:00
|
|
|
<call method="setBar">
|
2011-01-14 14:07:09 +00:00
|
|
|
<argument type="service" id="bar"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</call>
|
2011-01-14 14:07:09 +00:00
|
|
|
<call method="initialize"/>
|
|
|
|
<configurator function="sc_configure"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</service>
|
|
|
|
<service id="bar" class="FooClass">
|
|
|
|
<argument>foo</argument>
|
2011-01-14 14:07:09 +00:00
|
|
|
<argument type="service" id="foo.baz"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
<argument>%foo_bar%</argument>
|
2011-01-14 14:07:09 +00:00
|
|
|
<configurator service="foo.baz" method="configure"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</service>
|
2010-07-05 08:47:14 +01:00
|
|
|
<service id="foo.baz" class="%baz_class%" factory-method="getInstance">
|
2011-01-14 14:07:09 +00:00
|
|
|
<configurator class="%baz_class%" method="configureStatic1"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</service>
|
2013-01-05 08:50:11 +00:00
|
|
|
<service id="foo_bar" class="%foo_class%" scope="prototype"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
<service id="method_call1" class="FooClass">
|
2010-11-12 08:49:59 +00:00
|
|
|
<file>%path%foo.php</file>
|
2010-01-04 14:26:20 +00:00
|
|
|
<call method="setBar">
|
2011-01-14 14:07:09 +00:00
|
|
|
<argument type="service" id="foo"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</call>
|
|
|
|
<call method="setBar">
|
2011-01-14 14:07:09 +00:00
|
|
|
<argument type="service" id="foo2" on-invalid="null"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</call>
|
|
|
|
<call method="setBar">
|
2011-01-14 14:07:09 +00:00
|
|
|
<argument type="service" id="foo3" on-invalid="ignore"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</call>
|
|
|
|
<call method="setBar">
|
2011-01-14 14:07:09 +00:00
|
|
|
<argument type="service" id="foobaz" on-invalid="ignore"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</call>
|
|
|
|
</service>
|
2013-01-05 08:50:11 +00:00
|
|
|
<service id="factory_service" class="Bar" factory-method="getInstance" factory-service="foo.baz"/>
|
2013-01-05 08:13:52 +00:00
|
|
|
<service id="foo_with_inline" class="Foo">
|
|
|
|
<call method="setBar">
|
|
|
|
<argument type="service" id="inlined"/>
|
|
|
|
</call>
|
|
|
|
</service>
|
|
|
|
<service id="inlined" class="Bar" public="false">
|
|
|
|
<property name="pub">pub</property>
|
2013-01-05 09:16:41 +00:00
|
|
|
<call method="setBaz">
|
|
|
|
<argument type="service" id="baz"/>
|
|
|
|
</call>
|
|
|
|
</service>
|
|
|
|
<service id="baz" class="Baz">
|
2013-01-05 08:13:52 +00:00
|
|
|
<call method="setFoo">
|
|
|
|
<argument type="service" id="foo_with_inline"/>
|
|
|
|
</call>
|
|
|
|
</service>
|
2013-02-06 20:42:01 +00:00
|
|
|
<service id="request" class="Request" synthetic="true" synchronized="true"/>
|
|
|
|
<service id="depends_on_request" class="stdClass">
|
|
|
|
<call method="setRequest">
|
|
|
|
<argument type="service" id="request" on-invalid="null" strict="false"/>
|
|
|
|
</call>
|
|
|
|
</service>
|
2011-01-14 14:07:09 +00:00
|
|
|
<service id="alias_for_foo" alias="foo"/>
|
2013-06-05 10:51:05 +01:00
|
|
|
<service id="alias_for_alias" alias="foo"/>
|
2010-01-04 14:26:20 +00:00
|
|
|
</services>
|
|
|
|
</container>
|