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

Use service name in the example #541

Merged
merged 1 commit into from Apr 8, 2024
Merged

Conversation

jaapio
Copy link
Contributor

@jaapio jaapio commented Apr 8, 2024

By defining a new service for Doctrine\Migrations\Version\DbalMigrationFactory you overwrite the existing factory. The existing factory definition however is more complex when you have multiple connections defined. The connection is determined by the arguments passed to the console command. The original example breaks this behavior.

By now the example is using the exiting service to decorate, allowing people with multiple connections to create a new decorator without breaking the behavior.

By defining a new service for `Doctrine\Migrations\Version\DbalMigrationFactory` you overwrite the existing factory. The existing factory definition however is more complex when you have multiple connections defined. The connection is determined by the arguments passed to the console command. The original example breaks this behavior. 

By now the example is using the exiting service to decorate, allowing people with multiple connections to create a new decorator without breaking the behavior.
@SenseException SenseException merged commit d06c787 into doctrine:3.3.x Apr 8, 2024
13 checks passed
@greg0ire greg0ire added this to the 3.3.1 milestone Apr 8, 2024
@jaapio jaapio deleted the patch-1 branch April 9, 2024 05:59
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

3 participants