services5.xml 791 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <services>
  6. <service id="foo" class="FooClass">
  7. <argument type="service">
  8. <service class="BarClass">
  9. <argument type="service">
  10. <service class="BazClass">
  11. </service>
  12. </argument>
  13. </service>
  14. </argument>
  15. <property name="p" type="service">
  16. <service class="BuzClass" />
  17. </property>
  18. </service>
  19. <service id="bar" parent="foo" />
  20. <service class="BizClass">
  21. <tag name="biz_tag" />
  22. </service>
  23. </services>
  24. </container>