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

Updated service definition to support Messenger 5.1 #1131

Merged
merged 3 commits into from Mar 26, 2020

Conversation

Nyholm
Copy link
Contributor

@Nyholm Nyholm commented Jan 24, 2020

I have a PR open to Symfony to move the Doctrine transport to a new package. See symfony/symfony#35422

If my Symfony PR is merged, this PR makes sure that DoctrineBundle is compatible with Symfony Messenger 5.1 without any deprecation notices.

This PR could also be cherry-picked to 1.x branch.

@ostrolucky ostrolucky added the Status: On Hold Most likely waiting for upstream resolution label Jan 24, 2020
DependencyInjection/DoctrineExtension.php Outdated Show resolved Hide resolved
@Nyholm Nyholm changed the title WIP: Updated service definition to support Messenger 5.1 Updated service definition to support Messenger 5.1 Jan 29, 2020
@Nyholm
Copy link
Contributor Author

Nyholm commented Jan 29, 2020

Thank you for the review.

My PR got merged in Symfony so I removed WIP on this PR. This PR is not "on hold" anymore.

@SenseException
Copy link
Member

Nice. After adding (a) testcase(s), this should be fine from my point of view.

@Nyholm
Copy link
Contributor Author

Nyholm commented Jan 29, 2020

Thank you.

Could you give me some guidance how I can test both outcomes of if (! class_exists(DoctrineTransportFactory::class))?

@SenseException
Copy link
Member

The build process is installing composer packages differently for many use cases. One is a PHP 7.1 using --prefer-lowest. If there's an installation without a Messenger component, another path will be covered. You'll find an example for the Messenger component here:
https://github.com/doctrine/DoctrineBundle/blob/master/Tests/DependencyInjection/DoctrineExtensionTest.php#L660

@alcaeus alcaeus added Improvement and removed Status: On Hold Most likely waiting for upstream resolution labels Feb 4, 2020
@alcaeus alcaeus added this to the 2.1.0 milestone Feb 4, 2020
Copy link
Member

@ostrolucky ostrolucky left a comment

Choose a reason for hiding this comment

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

This looks OK to me

@alcaeus
Copy link
Member

alcaeus commented Mar 26, 2020

Thanks @Nyholm!

@alcaeus alcaeus merged commit 26c16fa into doctrine:master Mar 26, 2020
@alcaeus alcaeus removed the request for review from SenseException March 26, 2020 06:18
@alcaeus
Copy link
Member

alcaeus commented Mar 26, 2020

And I just realised I merged this without squashing commits. Oh well 🤷‍♂️

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.

None yet

5 participants