8000 [DependencyInjection] Define default priority inside service class by pcabreus · Pull Request #31943 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DependencyInjection] Define default priority inside service class #31943

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

Closed
wants to merge 13 commits into from
Closed
Prev Previous commit
Next Next commit
using the tagged_iterator instead deprecated tagged
  • Loading branch information
pcabreus committed Jun 12, 2019
commit b9dd5eb67fb19832ba2892f2c7da61d8fdaf83bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<tag name="foo_tag"/>
</service>
<service id="foo_tagged_iterator" class="Bar" public="true">
<argument type="tagged" tag="foo_tag" default-priority-method="foopriority"/>
<argument type="tagged_iterator" tag="foo_tag" default-priority-method="foopriority"/>
</service>
<service id="foo_tagged_locator" class="Bar" public="true">
<argument type="tagged_locator" tag="foo_tag" default-priority-method="foopriority"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- { name: foo }
foo_service_tagged_iterator:
class: Bar
arguments: [!tagged { tag: foo, default_priority_method: foopriority }]
arguments: [!tagged_iterator { tag: foo, default_priority_method: foopriority }]
foo_service_tagged_locator:
class: Bar
arguments: [!tagged_locator { tag: foo, default_priority_method: foopriority }]
Expand Down
0