Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DependencyInjection] Add docs for default priority method for tagged services#12697

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@alexandrunastase
Copy link
Contributor

Fixes#12406

@alexandrunastasealexandrunastase changed the title[WIP] [DependencyInjection] Add method priority for tagged services[WIP] [DependencyInjection] Add docs for method priority for tagged servicesNov 26, 2019
@alexandrunastasealexandrunastaseforce-pushed theadd-method-priority-for-tagged-services branch 2 times, most recently fromae734d0 to00fda26CompareNovember 26, 2019 07:45
Copy link
Contributor

@OskarStarkOskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for working on this 👍

alexandrunastase reacted with thumbs up emoji
@alexandrunastasealexandrunastaseforce-pushed theadd-method-priority-for-tagged-services branch 2 times, most recently from217e1ac to2b5bcd4CompareDecember 1, 2019 19:46
@alexandrunastasealexandrunastase marked this pull request as ready for reviewDecember 1, 2019 19:48
@alexandrunastasealexandrunastase changed the title[WIP] [DependencyInjection] Add docs for method priority for tagged services[DependencyInjection] Add docs for method priority for tagged servicesDec 1, 2019
@alexandrunastasealexandrunastase changed the title[DependencyInjection] Add docs for method priority for tagged services[DependencyInjection] Add docs for default method priority for tagged servicesDec 1, 2019
@alexandrunastasealexandrunastase changed the title[DependencyInjection] Add docs for default method priority for tagged services[DependencyInjection] Add docs for default priority method for tagged servicesDec 1, 2019
}

..tip::
Prioritizing Tagged Services
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe „Tagged Services with Priority“ sounds more natural?

cc@javiereguiluz

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

For me the current one sounds a bit clearer, but if others think that "Tagged Services with Priority" is better I will just update it.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Changed it to how you suggested

Prioritizing Tagged Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The tagged services can be prioritized using the ``priority`` attribute:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

To me a sentence is missing what I can achieve by using priority. I mean we are talking a lot about the how but not the why. A real world use case would be very helpful to get context. Thanks

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

From my side it looks pretty obvious, but maybe I am not the best person to ask since I did not need this until now. I started looking into this on Symfony Hack Day. If you can share some use case, we can surely added it.

OskarStark reacted with heart emoji
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What about expanding that sentence a little? Something like:

The tagged services can be prioritized using the ``priority`` attribute,so a consumer can be injected a sorted collection:

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Updated. I tried to avoid using the wordconsumer since that can have different meanings and might confuse people. Thanks@HeahDude

Copy link
Contributor

@HeahDudeHeahDude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good, thanks! Some minor comments

Prioritizing Tagged Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The tagged services can be prioritized using the ``priority`` attribute:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What about expanding that sentence a little? Something like:

The tagged services can be prioritized using the ``priority`` attribute,so a consumer can be injected a sorted collection:

..tip::
Prioritizing Tagged Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Added it. Thanks :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Missing a dot :)

Copy link
ContributorAuthor

@alexandrunastasealexandrunastaseJun 8, 2020
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Added it :)

@HeahDudeHeahDude modified the milestones:4.3,4.4Feb 19, 2020
@alexandrunastasealexandrunastaseforce-pushed theadd-method-priority-for-tagged-services branch from2b5bcd4 tob2fd0f1CompareMarch 22, 2020 09:11
@alexandrunastasealexandrunastaseforce-pushed theadd-method-priority-for-tagged-services branch 3 times, most recently froma21981b tod5b8517CompareMarch 22, 2020 09:21
Copy link
Contributor

@HeahDudeHeahDude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

One last change here and we should be good. Thanks

Copy link
Contributor

@HeahDudeHeahDude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks for documenting this. I've spotted 2 typos on my last review, but we can handle them on merge ✌️.

..tip::
Prioritizing Tagged Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Missing a dot :)

->args([
tagged_iterator('app.handler', null, null, 'getPriority'),
]
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Semi colon on next line

Copy link
ContributorAuthor

@alexandrunastasealexandrunastaseJun 8, 2020
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fixed the semicolon. Not sure about the dot. Assumed it was at the end of the versionadded sentence.

@wouterjwouterjforce-pushed theadd-method-priority-for-tagged-services branch from4c99d1f to294ac51CompareOctober 3, 2020 21:15
wouterj added a commit that referenced this pull requestOct 3, 2020
@wouterjwouterj merged commitb7a35f2 intosymfony:4.4Oct 3, 2020
@wouterj
Copy link
Member

I'm sorry that this PR has been open for soo long@alexandrunastase. At least, it's merged now. I've done some very minor tweaks afterwards in8a7d32e . Thanks for adding the documentation!

wouterj added a commit that referenced this pull requestOct 3, 2020
* 4.4:  [#12697] Some minor tweaks  [DependencyInjection] Add docs for default priority method for tagged services  [#12461] Added versionadded directive  List CSV encoder's context options
wouterj added a commit that referenced this pull requestOct 3, 2020
* 5.1:  Removed versionadded 4.4 directives  [#12697] Some minor tweaks  [DependencyInjection] Add docs for default priority method for tagged services  [#12461] Added versionadded directive  List CSV encoder's context options
@alexandrunastase
Copy link
ContributorAuthor

I'm sorry that this PR has been open for soo long@alexandrunastase. At least, it's merged now. I've done some very minor tweaks afterwards in8a7d32e . Thanks for adding the documentation!

Super nice! Thanks for the effort 👍

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

+2 more reviewers

@HeahDudeHeahDudeHeahDude approved these changes

@maxheliasmaxheliasmaxhelias approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

[DependencyInjection] added Ability to define a priority method for tag…

6 participants

@alexandrunastase@wouterj@OskarStark@HeahDude@maxhelias@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp