Skip to content

[DependencyInjection] Bind tagged services #12741

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

Merged
merged 1 commit into from
Dec 2, 2019
Merged

[DependencyInjection] Bind tagged services #12741

merged 1 commit into from
Dec 2, 2019

Conversation

tienvx
Copy link
Contributor

@tienvx tienvx commented Nov 30, 2019

fabpot added a commit to symfony/symfony that referenced this pull request Nov 30, 2019
…allowed in 'bind' tag (tienvx)

This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection][Xml] Fix the attribute 'tag' is not allowed in 'bind' tag

| Q             | A
| ------------- | ---
| Branch?       | 4.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | N/A <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs/pull/12741 <!-- required for new features -->

Add test case for https://symfony.com/blog/new-in-symfony-4-4-dependency-injection-improvements-part-1#allow-binding-tagged-services and fix a bug with attribute 'tag' is not allowed

Commits
-------

e38f7d4 [DependencyInjection][Xml] Fix the attribute 'tag' is not allowed in 'bind' tag
Copy link
Member

@javiereguiluz javiereguiluz 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 this contribution! It's really nice, but it's missing a little detail: we need to add a versionadded directive to tell readers that this was added in Symfony 4.4.

So, please, update your pull request as follows: in line 742, just before the paragraph that starts with "By putting the bind key under _defaults ...", add the following:

.. versionadded:: 4.4

    The feature to bind tagged services was introduced in Symfony 4.4.

@javiereguiluz javiereguiluz added this to the 4.4 milestone Dec 2, 2019
@OskarStark
Copy link
Contributor

OskarStark commented Dec 2, 2019

Thanks @tienvx for working on this feature, this is much appreciated.

I added the versionadded directive for you 😃

OskarStark added a commit that referenced this pull request Dec 2, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Bind tagged services

Update documentation for https://symfony.com/blog/new-in-symfony-4-4-dependency-injection-improvements-part-1#allow-binding-tagged-services

NOTE: this documentation require symfony/symfony#34732 to be merged

Commits
-------

7ec6d9d [DependencyInjection] Bind tagged services
OskarStark added a commit that referenced this pull request Dec 2, 2019
@OskarStark OskarStark merged commit 7ec6d9d into symfony:4.4 Dec 2, 2019
@tienvx
Copy link
Contributor Author

tienvx commented Dec 2, 2019

That's quick :D Thanks very much!

@tienvx tienvx deleted the bind-tagged-services branch December 2, 2019 10:36
@OskarStark
Copy link
Contributor

Thanks very much!

Thank you for this contribution 🎉

javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request Dec 2, 2019
* 4.4:
  Update parent_services.rst
  add versionadded directive. refs symfony#12741
  Added article on password migrations
  [DependencyInjection] Bind tagged services
  Fix documentation for PhpUnitBridge regex configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants