-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Make the Router cache_dir
configurable
#47496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fabbot.io failure is not due to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sensible to me
(Rebased needed) |
Merge conflicts resolved. |
@mpdude Can you rebase to get rid of the merge commit? |
e7cace1
to
5804c50
Compare
@fabpot done |
Out of curiosity, (why) would a merge commit matter if you do a squash merge anyway? |
5804c50
to
dd65d30
Compare
The script we are using to do the merge doesn't always work well in such situations. |
Thank you @mpdude. |
…ude) This PR was squashed before being merged into the 6.2 branch. Discussion ---------- Document the `framework.router.cache_dir` setting This documents a new configuration setting suggested in symfony/symfony#47496. Commits ------- 24b9b1d Document the `framework.router.cache_dir` setting
This PR adds a new
framework.router.cache_dir
configuration setting. It will default tokernel.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 thetest
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.