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

[Messenger] Use ConnectionRegistry instead of RegistryInterface #32354

Merged
merged 1 commit into from
Jul 4, 2019

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jul 4, 2019

Q A
Branch? 4.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets N/A
License MIT
Doc PR N/A

This PR changes the constructor type-hint on DoctrineTransportFactory from Symfony\Bridge\Doctrine\RegistryInterface to the smaller Doctrine\Common\Persistence\ConnectionRegistry. Since we only call the getConnection() method, this interface is sufficient.

This change allows to use the factory without the Doctrine bridge and makes it easier to use it stand-alone.

@fabpot
Copy link
Member

fabpot commented Jul 4, 2019

Thank you @derrabus.

@fabpot fabpot merged commit ce6a5ad into symfony:4.4 Jul 4, 2019
fabpot added a commit that referenced this pull request Jul 4, 2019
…terface (derrabus)

This PR was merged into the 4.4 branch.

Discussion
----------

[Messenger] Use ConnectionRegistry instead of RegistryInterface

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

This PR changes the constructor type-hint on `DoctrineTransportFactory` from `Symfony\Bridge\Doctrine\RegistryInterface` to the smaller `Doctrine\Common\Persistence\ConnectionRegistry`. Since we only call the `getConnection()` method, this interface is sufficient.

This change allows to use the factory without the Doctrine bridge and makes it easier to use it stand-alone.

Commits
-------

ce6a5ad Use ConnectionRegistry instead of RegistryInterface.
@derrabus derrabus deleted the improvement/connection-registry branch July 6, 2019 19:01
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.

3 participants