Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Minor tweaks regarding middleware factories #9818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions 10 messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ factories. Using them requires a two-step configuration based on Symfony's
arguments: ['@doctrine']

# Step 2: an abstract definition that will call the factory with default
# arguments or the one provided in the middleware config
# arguments or the ones provided in the middleware config
messenger.middleware.doctrine_transaction_middleware:
class: Symfony\Bridge\Doctrine\Messenger\DoctrineTransactionMiddleware
factory: ['@doctrine.orm.messenger.middleware_factory.transaction', 'createMiddleware']
Expand All @@ -318,9 +318,9 @@ Then you can reference and configure the
buses:
command_bus:
middleware:
# Using defaults:
# Using defaults
- doctrine_transaction_middleware
# Using another entity manager:
# Using another entity manager
- doctrine_transaction_middleware: ['custom']

.. code-block:: xml
Expand All @@ -337,7 +337,7 @@ Then you can reference and configure the
<framework:config>
<framework:messenger>
<framework:bus name="command_bus">
<!-- Using defaults: -->
<!-- Using defaults -->
<framework:middleware id="doctrine_transaction_middleware" />
<!-- Using another entity manager -->
<framework:middleware id="doctrine_transaction_middleware">
Expand All @@ -356,7 +356,7 @@ Then you can reference and configure the
'buses' => array(
'command_bus' => array(
'middleware' => array(
// Using defaults:
// Using defaults
'doctrine_transaction_middleware',
// Using another entity manager
array('id' => 'doctrine_transaction_middleware', 'arguments' => array('custom')),
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.