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

Commit c5ef7c8

Browse filesBrowse files
Reowrd to restore the original meaning
1 parent a87f21b commit c5ef7c8
Copy full SHA for c5ef7c8

File tree

1 file changed

+6
-6
lines changed
Filter options

1 file changed

+6
-6
lines changed

‎messenger.rst

Copy file name to clipboardExpand all lines: messenger.rst
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,22 +276,22 @@ you can disable them like this:
276276
Using Middleware Factories
277277
~~~~~~~~~~~~~~~~~~~~~~~~~~
278278

279-
Sometimes middleware are configurable using factories. There are two types of
280-
factories and they are based on Symfony's :doc:`dependency injection </service_container>`
281-
features:
279+
Some third-party bundles and libraries provide configurable middleware via
280+
factories. Using them requires a two-step configuration based on Symfony's
281+
:doc:`dependency injection </service_container>` features:
282282

283283
.. code-block:: yaml
284284
285285
services:
286286
287-
# Type 1: a factory class is registered as a service with the required
287+
# Step 1: a factory class is registered as a service with the required
288288
# dependencies to instantiate a middleware
289289
doctrine.orm.messenger.middleware_factory.transaction:
290290
class: Symfony\Bridge\Doctrine\Messenger\DoctrineTransactionMiddlewareFactory
291291
arguments: ['@doctrine']
292292
293-
# Type 2: an abstract definition that will call the factory with default arguments
294-
# or the one provided in the middleware config
293+
# Step 2: an abstract definition that will call the factory with default
294+
# arguments or the one 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']

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.