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
* @param array|null $tags The tags to add to the service
24
+
* @param array|null $calls The calls to be made when instantiating the service
25
+
* @param array|null $bind The bindings to declare for the service
26
+
* @param bool|string|null $lazy Whether the service is lazy-loaded
27
+
* @param bool|null $public Whether to declare the service as public
28
+
* @param bool|null $shared Whether to declare the service as shared
29
+
* @param bool|null $autowire Whether to declare the service as autowired
30
+
* @param array|null $properties The properties to define when creating the service
31
+
* @param array|string|null $configurator A PHP function, reference or an array containing a class/Reference and a method to call after the service is fully initialized
32
+
* @param string|null $constructor The public static inner method to use to instantiate the service
* @param string|array<string|SubscribedService> $services A tag name or an explicit list of services
32
-
* @param string|string[] $exclude A service or a list of services to exclude
31
+
* @param string|array<string|SubscribedService> $services A tag name or an explicit list of services
32
+
* @param string|null $indexAttribute The name of the attribute that defines the key referencing each service in the tagged collection
33
+
* @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
34
+
* @param string|null $defaultPriorityMethod The static method that should be called to get each service's priority when their tag doesn't define the "priority" attribute
35
+
* @param string|string[] $exclude A service or a list of services to exclude
36
+
* @param bool $excludeSelf Whether to automatically exclude the referencing service from the iterator
* @param string|array<string|SubscribedService> $services An explicit list of services or a tag name
30
-
* @param string|string[] $exclude A service or a list of services to exclude
29
+
* @param string|array<string|SubscribedService> $services A tag name or an explicit list of services
30
+
* @param string|null $indexAttribute The name of the attribute that defines the key referencing each service in the tagged collection
31
+
* @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
32
+
* @param string|null $defaultPriorityMethod The static method that should be called to get each service's priority when their tag doesn't define the "priority" attribute
33
+
* @param string|string[] $exclude A service or a list of services to exclude
34
+
* @param bool $excludeSelf Whether to automatically exclude the referencing service from the iterator
* Autowires an iterator of services based on a tag name.
16
+
*/
14
17
#[\Attribute(\Attribute::TARGET_PARAMETER)]
15
18
class TaggedIterator extends AutowireIterator
16
19
{
20
+
/**
21
+
* @param string $tag The tag to look for to populate the iterator
22
+
* @param string|null $indexAttribute The name of the attribute that defines the key referencing each service in the tagged collection
23
+
* @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
24
+
* @param string|null $defaultPriorityMethod The static method that should be called to get each service's priority when their tag doesn't define the "priority" attribute
25
+
* @param string|string[] $exclude A service or a list of services to exclude
26
+
* @param bool $excludeSelf Whether to automatically exclude the referencing service from the iterator
* Autowires a locator of services based on a tag name.
16
+
*/
14
17
#[\Attribute(\Attribute::TARGET_PARAMETER)]
15
18
class TaggedLocator extends AutowireLocator
16
19
{
20
+
/**
21
+
* @param string $tag The tag to look for to populate the locator
22
+
* @param string|null $indexAttribute The name of the attribute that defines the key referencing each service in the tagged collection
23
+
* @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
24
+
* @param string|null $defaultPriorityMethod The static method that should be called to get each service's priority when their tag doesn't define the "priority" attribute
25
+
* @param string|string[] $exclude A service or a list of services to exclude
26
+
* @param bool $excludeSelf Whether to automatically exclude the referencing service from the iterator
0 commit comments