This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services9.xml

98 lines
4.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<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">Bar\FooClass</parameter>
2010-01-04 14:26:20 +00:00
<parameter key="foo">bar</parameter>
</parameters>
<services>
<service id="foo" class="Bar\FooClass" factory-method="getInstance">
<tag name="foo" foo="foo"/>
<tag name="foo" bar="bar"/>
2010-01-04 14:26:20 +00:00
<argument>foo</argument>
<argument type="service" id="foo.baz"/>
2010-01-04 14:26:20 +00:00
<argument type="collection">
<argument key="%foo%">foo is %foo%</argument>
<argument key="foobar">%foo%</argument>
2010-01-04 14:26:20 +00:00
</argument>
<argument>true</argument>
<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"/>
<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">
<argument type="service" id="bar"/>
2010-01-04 14:26:20 +00:00
</call>
<call method="initialize"/>
<configurator function="sc_configure"/>
2010-01-04 14:26:20 +00:00
</service>
<service id="bar" class="Bar\FooClass">
2010-01-04 14:26:20 +00:00
<argument>foo</argument>
<argument type="service" id="foo.baz"/>
2010-01-04 14:26:20 +00:00
<argument>%foo_bar%</argument>
<configurator service="foo.baz" method="configure"/>
2010-01-04 14:26:20 +00:00
</service>
<service id="foo.baz" class="%baz_class%" factory-method="getInstance">
<configurator class="%baz_class%" method="configureStatic1"/>
2010-01-04 14:26:20 +00:00
</service>
<service id="foo_bar" class="%foo_class%" scope="prototype"/>
<service id="method_call1" class="Bar\FooClass">
<file>%path%foo.php</file>
2010-01-04 14:26:20 +00:00
<call method="setBar">
<argument type="service" id="foo"/>
2010-01-04 14:26:20 +00:00
</call>
<call method="setBar">
<argument type="service" id="foo2" on-invalid="null"/>
2010-01-04 14:26:20 +00:00
</call>
<call method="setBar">
<argument type="service" id="foo3" on-invalid="ignore"/>
2010-01-04 14:26:20 +00:00
</call>
<call method="setBar">
<argument type="service" id="foobaz" on-invalid="ignore"/>
2010-01-04 14:26:20 +00:00
</call>
<call method="setBar">
<argument type="expression">service("foo").foo() ~ parameter("foo")</argument>
</call>
2010-01-04 14:26:20 +00:00
</service>
<service id="factory_service" class="Bar" factory-method="getInstance" factory-service="foo.baz"/>
<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>
<call method="setBaz">
<argument type="service" id="baz"/>
</call>
</service>
<service id="baz" class="Baz">
<call method="setFoo">
<argument type="service" id="foo_with_inline"/>
</call>
</service>
<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>
<service id="configurator_service" class="ConfClass" public="false">
<call method="setFoo">
<argument type="service" id="baz"/>
</call>
</service>
<service id="configured_service" class="stdClass">
<configurator service="configurator_service" method="configureStdClass"/>
</service>
<service id="decorated" class="stdClass"/>
<service id="decorator_service" class="stdClass" decorates="decorated"/>
<service id="decorator_service_with_name" class="stdClass" decorates="decorated" decoration-inner-name="decorated.pif-pouf"/>
<service id="alias_for_foo" alias="foo"/>
<service id="alias_for_alias" alias="foo"/>
2010-01-04 14:26:20 +00:00
</services>
</container>