Skip to content

[Doctrine Bridge] fix priority for doctrine event listeners #27133

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

Conversation

dmaicher
Copy link
Contributor

@dmaicher dmaicher commented May 3, 2018

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #21977
License MIT
Doc PR -

As discussed in #27126 this ports changes from #22001 to 3.4 that were dropped when merging 2.8 into 3.2 here: dc66960#diff-27d2e9b071d766df504c3fe4131e7abf

I took my original changeset from 2.8 and applied all commits since then on top of that.

*
* @return array
*/
private function findAndSortTags($tagName, ContainerBuilder $container)
Copy link
Contributor Author

@dmaicher dmaicher May 3, 2018

Choose a reason for hiding this comment

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

seems I can not reuse PriorityTaggedServiceTrait::findAndSortTaggedServices as I also need other tag attributes returned and not only the service references?

Copy link
Contributor

Choose a reason for hiding this comment

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

Correct, you'll have to find them differently, as the findAndSortTaggedServices will return references only. Perhaps a second function could be exposed to find all tags instead.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone May 3, 2018
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Easier to review with a diff against 2.8.

@nicolas-grekas
Copy link
Member

Thank you @dmaicher.

@nicolas-grekas nicolas-grekas merged commit b3ac938 into symfony:3.4 May 4, 2018
nicolas-grekas added a commit that referenced this pull request May 4, 2018
…s (dmaicher)

This PR was merged into the 3.4 branch.

Discussion
----------

[Doctrine Bridge] fix priority for doctrine event listeners

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21977
| License       | MIT
| Doc PR        | -

As discussed in #27126 this ports changes from #22001 to 3.4 that were dropped when merging 2.8 into 3.2 here: dc66960#diff-27d2e9b071d766df504c3fe4131e7abf

I took my original changeset from 2.8 and applied all commits since then on top of that.

Commits
-------

b3ac938 [Doctrine Bridge] fix priority for doctrine event listeners
This was referenced May 21, 2018
@dmaicher dmaicher deleted the port-doctrine-event-listener-changes branch May 23, 2018 09:02
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.

4 participants