Commit 1b3b14c
committed
feature #47496 [FrameworkBundle] Make the Router
This PR was squashed before being merged into the 6.2 branch.
Discussion
----------
[FrameworkBundle] Make the Router `cache_dir` configurable
| Q | A
| ------------- | ---
| Branch? | 6.2 for features
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets |
| License | MIT
| Doc PR | symfony/symfony-docs#17253
This PR adds a new `framework.router.cache_dir` configuration setting. It will default to `kernel.cache_dir` as previously, but makes it possible to easily re-configure the Router's cache directory.
My intended use case is to set it to `~` (`null`) for the `test` environment because I need to modify or otherwise dynamically load routes during tests. Another use case I see for it is to have tenant-specific route configurations and caches in multi-tenancy applications.
Commits
-------
dd65d30 [FrameworkBundle] Make the Router `cache_dir` configurablecache_dir configurable (mpdude)File tree
5 files changed
+5
-1
lines changed- src/Symfony/Bundle/FrameworkBundle
- DependencyInjection
- Resources/config
- Tests/DependencyInjection
5 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
611 | 612 | | |
612 | 613 | | |
613 | 614 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
| 1143 | + | |
1143 | 1144 | | |
1144 | 1145 | | |
1145 | 1146 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
535 | 536 | | |
536 | 537 | | |
537 | 538 | | |
| |||
0 commit comments