8000 Reowrd to restore the original meaning · symfony/symfony-docs@c5ef7c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5ef7c8

Browse files
Reowrd to restore the original meaning
1 parent a87f21b commit c5ef7c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

messenger.rst

Lines 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