-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[DependencyInjection] Doc for #30257 Allow to choose an index for tagged collection #11009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6c8e145
to
c995578
Compare
c995578
to
08ea69e
Compare
08ea69e
to
6ba1286
Compare
6ba1286
to
4ee4e8f
Compare
30626a7
to
126d0f2
Compare
126d0f2
to
2b8df41
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more changes please 🙈 🍻
adc95be
to
b504690
Compare
Done, thanks @OskarStark |
I've added a |
6db79cd
to
5cceab5
Compare
dcd44ba
to
338058f
Compare
Please note that in symfony/symfony#31463 I'm proposing to change the fallback from FQCN to service id. This PR should be updated accordingly when mine is merged. |
symfony/symfony#31463 is now merged with another behavior to document: |
Closing as already merged in #11042, which was identical to this one and documented two different Symfony features (symfony/symfony#30348 and symfony/symfony#30257). Thanks. |
@javiereguiluz I don't think #11042 covers this feature. #11042 is about service locators & the Even though they are very similar, they are still two different features, each with its own dedicated page. Currently, the Perhaps you should consider reopening this PR since it covers these undocumented features? |
Let's open then. Thanks. |
|
||
.. tip:: | ||
|
||
You can omit the ``index_attribute_name`` attribute, by implementing a static |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Javier, the sentence should be You can omit the ``key`` attribute...
, then directly show the usage of
arguments: [!tagged { tag: 'app.handler', index_by: 'key', default_index_method: 'someFunctionName' }]
within the tip, and discard the following.
338058f
to
980b3d3
Compare
Thanks @XuruDragon for creating this PR! This is now merged and I've shortened the changes a bit without loosing any information afterwards in 4ffbc62 . |
Here is the doc for the new feature implemented in : symfony/symfony#30257