Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #32392 [Messenger] Doctrine Transport: Support setting auto_setup…
… from DSN (bendavies) This PR was squashed before being merged into the 4.3 branch (closes #32392). Discussion ---------- [Messenger] Doctrine Transport: Support setting auto_setup from DSN | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | <!-- required for new features --> It was not possible to set `auto_setup` via the dsn, as the result would always be a string, resulting in setup always being performed because a bool is required. The same was true if `auto_setup` was provided in `options` as a string. I've fixed ensuring that the final configuration contains a bool for `auto_setup`. Additionally, constructing the `configuration` was overly complex and hard to grok, so I've hopefully simplified it as part of this PR. As an aside the three transports all do configuration construction in different ways with varying styles. It would be nice to neaten them up. Commits ------- 213dfd1 [Messenger] Doctrine Transport: Support setting auto_setup from DSN
- Loading branch information
Showing
2 changed files
with
76 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters