Commit f24ac9e
committed
bug symfony#59086 [FrameworkBundle] Make uri_signer lazy and improve error when kernel.secret is empty (nicolas-grekas)
This PR was merged into the 7.2 branch.
Discussion
----------
[FrameworkBundle] Make uri_signer lazy and improve error when kernel.secret is empty
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
Some polishing found while delivering The Fast Track workshop at SymfonyCon Vienna ;)
The profiler is currently broken if `APP_SECRET` is empty, and the reason is that the twig extension that provides the `render()` function has a dependency on `uri_signer`. Since this dep is not used by the profiler, this error is a false positive. Making the `uri_signer` service lazy resolves the issue.
Before that, I noticed that the error message was sub-optimal, telling about `framework.secret` being unconfigured, while it was (but the env var was not).
Commits
-------
8a4e809 [FrameworkBundle] Make uri_signer lazy and improve error when kernel.secret is emptyFile tree
2 files changed
+9
-1
lines changed- src/Symfony/Bundle/FrameworkBundle
- DependencyInjection
- Resources/config
2 files changed
+9
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
315 | 322 | | |
316 | | - | |
| 323 | + | |
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
0 commit comments