Skip to content

Commit f1f44c4

Browse files
committed
Tweaks
1 parent 1eb2819 commit f1f44c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service_container/tags.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,9 @@ indexed by the ``key`` attribute:
787787
};
788788
789789
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::
790+
application handlers. To retrieve a specific service from the iterator, call the
791+
``iterator_to_array()`` function and then use the ``key`` attribute to get the
792+
array element. For example, to retrieve the ``handler_two`` handler::
793793

794794
// src/Handler/HandlerCollection.php
795795
namespace App\Handler;

0 commit comments

Comments
 (0)