core.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <services>
  4. <service id="sonata.admin.pool" class="Sonata\AdminBundle\Admin\Pool">
  5. <argument type="service" id="service_container"/>
  6. <argument/>
  7. <argument/>
  8. <argument type="collection"/>
  9. <argument type="service" id="property_accessor"/>
  10. <call method="setTemplates">
  11. <argument>%sonata.admin.configuration.templates%</argument>
  12. </call>
  13. </service>
  14. <service id="sonata.admin.route_loader" class="Sonata\AdminBundle\Route\AdminPoolLoader">
  15. <argument type="service" id="sonata.admin.pool"/>
  16. <argument/>
  17. <argument type="service" id="service_container"/>
  18. <tag name="routing.loader"/>
  19. </service>
  20. <service id="sonata.admin.helper" class="Sonata\AdminBundle\Admin\AdminHelper">
  21. <argument type="service" id="sonata.admin.pool"/>
  22. </service>
  23. <service id="sonata.admin.builder.filter.factory" class="Sonata\AdminBundle\Filter\FilterFactory">
  24. <argument type="service" id="service_container"/>
  25. <argument/>
  26. </service>
  27. <service id="sonata.admin.breadcrumbs_builder" class="Sonata\AdminBundle\Admin\BreadcrumbsBuilder">
  28. <argument>%sonata.admin.configuration.breadcrumbs%</argument>
  29. </service>
  30. <!-- Services used to format the label, default is sonata.admin.label.strategy.noop -->
  31. <service id="sonata.admin.label.strategy.bc" class="Sonata\AdminBundle\Translator\BCLabelTranslatorStrategy"/>
  32. <service id="sonata.admin.label.strategy.native" class="Sonata\AdminBundle\Translator\NativeLabelTranslatorStrategy"/>
  33. <service id="sonata.admin.label.strategy.noop" class="Sonata\AdminBundle\Translator\NoopLabelTranslatorStrategy"/>
  34. <service id="sonata.admin.label.strategy.underscore" class="Sonata\AdminBundle\Translator\UnderscoreLabelTranslatorStrategy"/>
  35. <service id="sonata.admin.label.strategy.form_component" class="Sonata\AdminBundle\Translator\FormLabelTranslatorStrategy"/>
  36. <!-- Translation extractor -->
  37. <service id="sonata.admin.translator.extractor.jms_translator_bundle" class="Sonata\AdminBundle\Translator\Extractor\JMSTranslatorBundle\AdminExtractor">
  38. <tag name="jms_translation.extractor" alias="sonata_admin"/>
  39. <argument type="service" id="sonata.admin.pool"/>
  40. <argument type="service" id="logger" on-invalid="ignore"/>
  41. <call method="setBreadcrumbsBuilder">
  42. <argument type="service" id="sonata.admin.breadcrumbs_builder"/>
  43. </call>
  44. </service>
  45. <!-- controller as services -->
  46. <service id="sonata.admin.controller.admin" class="Sonata\AdminBundle\Controller\HelperController">
  47. <argument type="service" id="twig"/>
  48. <argument type="service" id="sonata.admin.pool"/>
  49. <argument type="service" id="sonata.admin.helper"/>
  50. <argument type="service" id="validator"/>
  51. </service>
  52. <!-- audit manager -->
  53. <service id="sonata.admin.audit.manager" class="Sonata\AdminBundle\Model\AuditManager">
  54. <argument type="service" id="service_container"/>
  55. </service>
  56. <!-- NEXT_MAJOR : remove this service -->
  57. <service id="sonata.admin.exporter" class="Sonata\AdminBundle\Export\Exporter"/>
  58. <service id="sonata.admin.search.handler" class="Sonata\AdminBundle\Search\SearchHandler">
  59. <argument type="service" id="sonata.admin.pool"/>
  60. </service>
  61. <!-- event -->
  62. <service id="sonata.admin.event.extension" class="Sonata\AdminBundle\Event\AdminEventExtension">
  63. <argument type="service" id="event_dispatcher"/>
  64. <tag name="sonata.admin.extension" global="true"/>
  65. </service>
  66. <!-- lock -->
  67. <service id="sonata.admin.lock.extension" class="Sonata\AdminBundle\Admin\Extension\LockExtension">
  68. <tag name="sonata.admin.extension" global="true"/>
  69. </service>
  70. <!-- twig -->
  71. <service id="sonata.admin.twig.global" class="Sonata\AdminBundle\Twig\GlobalVariables">
  72. <argument type="service" id="sonata.admin.pool"/>
  73. </service>
  74. </services>
  75. </container>