messenger.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <!--
  7. The following service isn't prefixed by the "doctrine.orm" namespace in order for end-users to just use
  8. the "doctrine_transaction" shortcut in message buses middleware config
  9. -->
  10. <service id="messenger.middleware.doctrine_transaction" class="Symfony\Bridge\Doctrine\Messenger\DoctrineTransactionMiddleware" abstract="true" public="false">
  11. <argument type="service" id="doctrine" />
  12. </service>
  13. <!--
  14. The following service isn't prefixed by the "doctrine.orm" namespace in order for end-users to just use
  15. the "doctrine_ping_connection" shortcut in message buses middleware config
  16. -->
  17. <service id="messenger.middleware.doctrine_ping_connection" class="Symfony\Bridge\Doctrine\Messenger\DoctrinePingConnectionMiddleware" abstract="true" public="false">
  18. <argument type="service" id="doctrine" />
  19. </service>
  20. <!--
  21. The following service isn't prefixed by the "doctrine.orm" namespace in order for end-users to just use
  22. the "doctrine_close_connection" shortcut in message buses middleware config
  23. -->
  24. <service id="messenger.middleware.doctrine_close_connection" class="Symfony\Bridge\Doctrine\Messenger\DoctrineCloseConnectionMiddleware" abstract="true" public="false">
  25. <argument type="service" id="doctrine" />
  26. </service>
  27. <!--
  28. The following service isn't tagged as transport factory because the class may not exist.
  29. The tag is added conditionally in DoctrineExtension.
  30. -->
  31. <service id="messenger.transport.doctrine.factory" class="Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineTransportFactory" public="false">
  32. <argument type="service" id="doctrine" />
  33. </service>
  34. <service id="doctrine.orm.messenger.event_subscriber.doctrine_clear_entity_manager" class="Symfony\Bridge\Doctrine\Messenger\DoctrineClearEntityManagerWorkerSubscriber" public="false">
  35. <tag name="kernel.event_subscriber" />
  36. <argument type="service" id="doctrine" />
  37. </service>
  38. <service id="doctrine.orm.messenger.doctrine_schema_subscriber" class="Symfony\Bridge\Doctrine\SchemaListener\MessengerTransportDoctrineSchemaSubscriber">
  39. <argument type="tagged" tag="messenger.receiver" />
  40. <tag name="doctrine.event_subscriber" />
  41. </service>
  42. </services>
  43. </container>