Skip to content

Commit

Permalink
Document new async_switch config option
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Aug 31, 2016
1 parent bbf516e commit d706a29
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/prooph_service_bus.config.php
Expand Up @@ -34,6 +34,12 @@
//Router defaults to Prooph\ServiceBus\Plugin\Router\CommandRouter
//Comment out the next line to use the RegexRouter instead
//'type' => \Prooph\ServiceBus\Plugin\Router\RegexRouter::class,

//[optional] Enable the AsyncSwitchMessageRouter, see docs/plugins.md AsyncSwitchMessageRouter section for details
//If "async_switch" key is present and references an Async\MessageProducer available in the container
//the factory will pull the producer from the container and set up an AsyncSwitchMessageRouter
//using the producer AND decorating the actual configured router
//'async_switch' => 'container_id_of_async_message_producer',
]
],
//This section will be used by Prooph\ServiceBus\Container\EventBusFactory
Expand All @@ -49,6 +55,12 @@
//Router defaults to Prooph\ServiceBus\Plugin\Router\EventRouter
//Comment out the next line to use the RegexRouter instead
//'type' => \Prooph\ServiceBus\Plugin\Router\RegexRouter::class,

//[optional] Enable the AsyncSwitchMessageRouter, see docs/plugins.md AsyncSwitchMessageRouter section for details
//If "async_switch" key is present and references an Async\MessageProducer available in the container
//the factory will pull the producer from the container and set up an AsyncSwitchMessageRouter
//using the producer AND decorating the actual configured router
//'async_switch' => 'container_id_of_async_message_producer',
]
],
//This section will be used by Prooph\ServiceBus\Container\QueryBusFactory
Expand All @@ -64,6 +76,12 @@
//Router defaults to Prooph\ServiceBus\Plugin\Router\QueryRouter
//Comment out the next line to use the RegexRouter instead
//'type' => \Prooph\ServiceBus\Plugin\Router\RegexRouter::class,

//[optional] Enable the AsyncSwitchMessageRouter, see docs/plugins.md AsyncSwitchMessageRouter section for details
//If "async_switch" key is present and references an Async\MessageProducer available in the container
//the factory will pull the producer from the container and set up an AsyncSwitchMessageRouter
//using the producer AND decorating the actual configured router
//'async_switch' => 'container_id_of_async_message_producer',
]
],
], //EO service_bus
Expand Down

0 comments on commit d706a29

Please sign in to comment.