Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Sep 6, 2022

This documents a new configuration setting suggested in symfony/symfony#47496.

@carsonbot carsonbot added this to the 6.2 milestone Sep 6, 2022
@OskarStark OskarStark added the Waiting Code Merge Docs for features pending to be merged label Sep 7, 2022
@carsonbot carsonbot modified the milestones: 6.2, next Sep 7, 2022
fabpot added a commit to symfony/symfony that referenced this pull request Oct 1, 2022
…able (mpdude)

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` configurable
@mpdude
Copy link
Contributor Author

mpdude commented Oct 1, 2022

Code has been merged

@OskarStark OskarStark removed the Waiting Code Merge Docs for features pending to be merged label Oct 1, 2022
@OskarStark
Copy link
Contributor

Thank you Matthias.

@OskarStark OskarStark merged commit 01714e1 into symfony:6.2 Oct 1, 2022
@mpdude mpdude deleted the doc-47496 branch October 1, 2022 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants