-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
DependencyInjectionFeatureGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Help wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.
Description
Description
Currently, tagged locators using the default_index_method
static method name pointer must point to a method whose return type is string
. However, my objects expose integer keys. Rather than rewrite my application to fit Symfony (where string does not make sense to the application), I think it better that Symfony should accept integer keys and internally convert them to string if so needed.
Example
MyService:
arguments:
$foo: !tagged_locator
tag: my_tag
default_index_method: myStaticMethod # returns integer
ro0NL and derrabus
Metadata
Metadata
Assignees
Labels
DependencyInjectionFeatureGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Help wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.