We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e71ff7 commit 7304bfaCopy full SHA for 7304bfa
service_container/tags.rst
@@ -808,13 +808,18 @@ array element. For example, to retrieve the ``handler_two`` handler::
808
``getDefault(``index_by``)Name()`` method in the handlers and omit the
809
index attribute (``key``)::
810
811
+
812
+ .. code-block:: yaml
813
814
# config/services.yaml
815
services:
816
# ...
817
818
App\HandlerCollection:
819
arguments: [!tagged_iterator { tag: 'app.handler', index_by: 'handler' }]
820
821
+ .. code-block:: php
822
823
// src/Handler/One.php
824
namespace App\Handler;
825
0 commit comments