You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Argument/TaggedIteratorArgument.php
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,6 @@ class TaggedIteratorArgument extends IteratorArgument
23
23
private$defaultIndexMethod;
24
24
25
25
/**
26
-
* TaggedIteratorArgument constructor.
27
-
*
28
26
* @param string $tag The name of the tag identifying the target services
29
27
* @param string|null $indexAttribute The name of the attribute that defines the key referencing each service in the tagged collection
30
28
* @param string|null $defaultIndexMethod The static method that should be called to get each service's key when their tag doesn't define the previous attribute
thrownewInvalidArgumentException(sprintf('Tag "<%s>" with type="service_locator" only accepts maps of type="service" references in "%s".', $name, $file));
534
534
}
535
535
break;
536
+
case'tagged_locator':
537
+
if (!$arg->getAttribute('tag') || !$arg->getAttribute('index-by')) {
538
+
thrownewInvalidArgumentException(sprintf('Tag "<%s>" with type="tagged_locator" has no or empty "tag" or "index-by" attributes in "%s".', $name, $file));
0 commit comments