Align findSortedServices code with symfony PriorityTaggedServiceTrait#1413
Align findSortedServices code with symfony PriorityTaggedServiceTrait#1413norkunas wants to merge 2 commits intoapi-platform:2.1from
Conversation
norkunas
commented
Oct 11, 2017
| Q | A |
|---|---|
| Bug fix? | no |
| New feature? | no |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | #1412 |
| License | MIT |
| Doc PR | none |
|
IMO you can directly copy/paste the trait from Symfony. IIRC we use sorting in the other compilation passes. |
|
When using this compiler pass we know what the DependencyInjection component is here tho... so we could use this trait. (beautiful copy/paste of my comment on the issue: #1412 (comment)) |
|
But we have to bump our minimum requirements @sroze. |
|
I didn't find any other occurences for sorting services |
|
This trait was introduced in Symfony 3.2. And we already have the following in our |
|
@sroze is right, we should just use the trait! |
|
I'm agree, but tests will fail with |
|
Indeed in 2.0 (which is only maintained for bugs and security fixes - and it's not the case here) https://github.com/api-platform/core/blob/2.0/composer.json#L47 So I propose to use the trait and rebase this PR against 2.1. |
|
Sounds good to me 👍 |
|
I didn't pay attention to the base branch! Let's do that! |