Skip to content
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

[DoctrineBundle] remove doctrine.event_subscriber tag and replace by doctrine.event_listener tag #1650

Conversation

alli83
Copy link
Contributor

@alli83 alli83 commented Apr 21, 2023

Remove doctrine.event_subscribers tag in bundle and replace them with doctrine.event_listener tag.

following symfony/symfony#49918

@alli83 alli83 force-pushed the doctrine-bundle-switch-subscribers-tag-to-listeners-tag branch 2 times, most recently from 77b10b9 to b5c5053 Compare April 21, 2023 13:59
@dmaicher
Copy link
Contributor

What about those defined in xml config files? 🤔

https://github.com/search?q=repo%3Adoctrine%2FDoctrineBundle%20doctrine.event_subscriber&type=code

@alli83
Copy link
Contributor Author

alli83 commented Apr 25, 2023

All doctrine schema subscribers are deprecated since 6.3 and are going to be removed and replaced by their respective doctrine schema listeners already present in xml config files if I'm not wrong.

@ostrolucky
Copy link
Member

Not sure if we should do this in patch release

@SenseException
Copy link
Member

Not sure if we should do this in patch release

True. This should target 2.10.x.

@alli83
Copy link
Contributor Author

alli83 commented Apr 26, 2023

ok thanks ! i rebase and update the targeted branch then

@alli83 alli83 force-pushed the doctrine-bundle-switch-subscribers-tag-to-listeners-tag branch from b5c5053 to 89ac05c Compare April 26, 2023 05:54
@alli83 alli83 changed the base branch from 2.9.x to 2.10.x April 26, 2023 05:54
@dmaicher dmaicher merged commit af1df78 into doctrine:2.10.x Apr 26, 2023
12 checks passed
@dmaicher
Copy link
Contributor

Thanks @alli83

fabpot added a commit to symfony/symfony that referenced this pull request May 5, 2023
…ed (alli83)

This PR was merged into the 6.3 branch.

Discussion
----------

[DoctrineBridge] skip subscriber if listener already defined

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? |
| Tickets       |
| License       | MIT
| Doc PR        |

Following #49918 and doctrine/DoctrineBundle#1650 skip doctrine event subscriber if a doctrine event listener is already defined for the same definition.

Commits
-------

5a867c5 [DoctrineBridge] skip subscriber if listener already defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants