We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b775d33 + f1f44c4 commit 9f1c2b8Copy full SHA for 9f1c2b8
service_container/tags.rst
@@ -783,9 +783,9 @@ indexed by the ``key`` attribute:
783
};
784
785
After compilation the ``HandlerCollection`` is able to iterate over your
786
-application handlers. To retrieve a specific service by it's ``key`` attribute
787
-from the iterator, we can use ``iterator_to_array`` and retrieve the ``handler_two``:
788
-to get an array and then retrieve the ``handler_two`` handler::
+application handlers. To retrieve a specific service from the iterator, call the
+``iterator_to_array()`` function and then use the ``key`` attribute to get the
+array element. For example, to retrieve the ``handler_two`` handler::
789
790
// src/Handler/HandlerCollection.php
791
namespace App\Handler;
0 commit comments