Commit 13f3197
authored
Use service name in the example
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.1 parent 4c0f5a4 commit 13f3197
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | 254 | | |
256 | | - | |
257 | | - | |
| 255 | + | |
| 256 | + | |
258 | 257 | | |
259 | 258 | | |
260 | 259 | | |
| |||
0 commit comments