Skip to content

Commit 7304bfa

Browse files
KleinastOskarStark
andauthored
Apply suggestions from code review
Co-authored-by: Oskar Stark <[email protected]>
1 parent 9e71ff7 commit 7304bfa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

service_container/tags.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,13 +808,18 @@ array element. For example, to retrieve the ``handler_two`` handler::
808808
``getDefault(``index_by``)Name()`` method in the handlers and omit the
809809
index attribute (``key``)::
810810
811+
812+
.. code-block:: yaml
813+
811814
# config/services.yaml
812815
services:
813816
# ...
814817

815818
App\HandlerCollection:
816819
arguments: [!tagged_iterator { tag: 'app.handler', index_by: 'handler' }]
817820
821+
.. code-block:: php
822+
818823
// src/Handler/One.php
819824
namespace App\Handler;
820825

0 commit comments

Comments
 (0)