Skip to content

Commit 738bfa0

Browse files
Update service_container/tags.rst
Co-Authored-By: XuruDragon <[email protected]>
1 parent 012fc33 commit 738bfa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service_container/tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ but we can now access a specific injected service:
636636
->addArgument(new TaggedIteratorArgument('app.handler', 'key'));
637637
638638
After compilation the ``HandlerCollection`` is able to iterate over your
639-
application handlers. But we want to retrieve a specific service by it's
639+
application handlers. To retrieve a specific service by it's ``key`` attribute
640640
``key`` attribute. As it's an iterator, we can use ``iterator_to_array``
641641
to get an array and then retrieve the ``handler_two`` handler :
642642

0 commit comments

Comments
 (0)