You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments