Skip to content

Commit 2c01e73

Browse files
committed
minor #9818 [Messenger] Minor tweaks regarding middleware factories (ogizanagi)
This PR was merged into the 4.1 branch. Discussion ---------- [Messenger] Minor tweaks regarding middleware factories <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> - fixes a typo - removes trailing `:` in examples' comments for consistency Commits ------- 88b2266 [Messenger] Minor tweaks regarding middleware factories
2 parents 4cb9839 + 88b2266 commit 2c01e73

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

messenger.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ factories. Using them requires a two-step configuration based on Symfony's
291291
arguments: ['@doctrine']
292292
293293
# Step 2: an abstract definition that will call the factory with default
294-
# arguments or the one provided in the middleware config
294+
# arguments or the ones provided in the middleware config
295295
messenger.middleware.doctrine_transaction_middleware:
296296
class: Symfony\Bridge\Doctrine\Messenger\DoctrineTransactionMiddleware
297297
factory: ['@doctrine.orm.messenger.middleware_factory.transaction', 'createMiddleware']
@@ -318,9 +318,9 @@ Then you can reference and configure the
318318
buses:
319319
command_bus:
320320
middleware:
321-
# Using defaults:
321+
# Using defaults
322322
- doctrine_transaction_middleware
323-
# Using another entity manager:
323+
# Using another entity manager
324324
- doctrine_transaction_middleware: ['custom']
325325
326326
.. code-block:: xml
@@ -337,7 +337,7 @@ Then you can reference and configure the
337337
<framework:config>
338338
<framework:messenger>
339339
<framework:bus name="command_bus">
340-
<!-- Using defaults: -->
340+
<!-- Using defaults -->
341341
<framework:middleware id="doctrine_transaction_middleware" />
342342
<!-- Using another entity manager -->
343343
<framework:middleware id="doctrine_transaction_middleware">
@@ -356,7 +356,7 @@ Then you can reference and configure the
356356
'buses' => array(
357357
'command_bus' => array(
358358
'middleware' => array(
359-
// Using defaults:
359+
// Using defaults
360360
'doctrine_transaction_middleware',
361361
// Using another entity manager
362362
array('id' => 'doctrine_transaction_middleware', 'arguments' => array('custom')),

0 commit comments

Comments
 (0)