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 symfony#58445 [FrameworkBundle][Lock] Fix certain DSNs identified as service IDs (HypeMC)
This PR was merged into the 7.2 branch.
Discussion
----------
[FrameworkBundle][Lock] Fix certain DSNs identified as service IDs
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fixsymfony#58249 (comment)
| License | MIT
Follow up to symfony#58249
The first PR introduced a BC break, as lock DSNs can also be in the following formats:
```yaml
framework:
lock: 'flock'
lock: 'semaphore'
lock: 'in-memory'
lock: 'mysql:host=127.0.0.1;dbname=app'
lock: 'pgsql:host=127.0.0.1;dbname=app'
lock: 'pgsql+advisory:host=127.0.0.1;dbname=app'
lock: 'sqlsrv:server=127.0.0.1;Database=app'
lock: 'oci:host=127.0.0.1;dbname=app'
```
This PR introduces two changes:
1. The framework bundle now treats any string containing a `:` as a DSN, instead of only those with `://`
2. `flock`, `semaphore`, and `in-memory` are now treated as special cases
Commits
-------
9abfbe0 [FrameworkBundle][Lock] Fix certain DSNs identified as service IDs
0 commit comments