Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use service name in the example#541

Merged
SenseException merged 1 commit into
doctrine:3.3.xfrom
jaapio:patch-1
Apr 8, 2024
Merged

Use service name in the example#541
SenseException merged 1 commit into
doctrine:3.3.xfrom
jaapio:patch-1

Conversation

@jaapio
Copy link
Copy Markdown
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
@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.

3 participants