8000
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 1eb2819 commit f1f44c4Copy full SHA for f1f44c4
service_container/tags.rst
@@ -787,9 +787,9 @@ indexed by the ``key`` attribute:
787
};
788
789
After compilation the ``HandlerCollection`` is able to iterate over your
790
-application handlers. To retrieve a specific service by it's ``key`` attribute
791
-from the iterator, we can use ``iterator_to_array``
792
-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::
793
794
// src/Handler/HandlerCollection.php
795
namespace App\Handler;
0 commit comments