This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle
Fabien Potencier 691b604972 feature #37114 Provides a way to override cache and log folders from the ENV (Plopix)
This PR was merged into the 5.2-dev branch.

Discussion
----------

Provides a way to override cache and log folders from the ENV

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| License       | MIT

When using Docker and especially on Mac OS X, performances are terrible when using a "mount" on the host inside the container. (which happens by default)

To optimize the performances, one of the tricks is to change where the application is going to write the cache and the logs.

This PR provides a new env variables `APP_CACHE_DIR` and `APP_LOG_DIR` which can be set to change where will be saved the caches and the logs.

I know we can do it per project BUT:
- I think that is a good addition to Symfony
- it would allow project like eZ Platform and eZ Launchpad to automate that optimization
https://github.com/ezsystems/ezplatform/pull/543

Let me know

Commits
-------

5fa5d36153 Provides a way to override cache and log folders form the ENV
2020-06-09 13:19:08 +02:00
..
CacheWarmer [HttpKernel] allow cache warmers to add to the list of preloaded classes and files 2020-04-04 11:52:45 +02:00
Command Secrets, Security, and Messenger commands descriptions should not end with a "." (dot) 2020-05-12 22:47:58 +02:00
Console Merge branch '5.0' 2020-04-13 12:14:44 +02:00
Controller Revert "feature #36184 [FrameworkBundle] Deprecate renderView() in favor of renderTemplate() (javiereguiluz)" 2020-05-05 08:53:10 +02:00
DataCollector Remove \Throwable support deprecation layer 2019-11-08 10:00:49 +01:00
DependencyInjection [FrameworkBundle][Mailer] Add a way to configure some email headers from semantic configuration 2020-06-09 10:31:02 +02:00
EventListener Fix quotes in exception messages 2020-03-16 12:24:17 +01:00
HttpCache Merge branch '4.4' into 5.0 2020-01-10 22:57:37 +01:00
Kernel Provides a way to override cache and log folders form the ENV 2020-06-05 10:31:32 -07:00
Resources [FrameworkBundle][Mailer] Add a way to configure some email headers from semantic configuration 2020-06-09 10:31:02 +02:00
Routing Revert "feature #30501 [FrameworkBundle][Routing] added Configurators to handle template and redirect controllers (HeahDude)" 2020-04-24 12:08:40 +02:00
Secrets Merge branch '5.0' 2020-05-16 11:12:54 +02:00
Test Fix deprecation messages 2020-03-17 20:48:51 +01:00
Tests [FrameworkBundle][Mailer] Add a way to configure some email headers from semantic configuration 2020-06-09 10:31:02 +02:00
Translation [HttpKernel] allow cache warmers to add to the list of preloaded classes and files 2020-04-04 11:52:45 +02:00
.gitattributes add missing gitattributes for phpunit-bridge 2020-03-27 17:54:36 +01:00
.gitignore
CHANGELOG.md remove getProjectDir method from MicroKernelTrait 2020-05-06 12:44:29 +02:00
composer.json [FrameworkBundle][Mailer] Add a way to configure some email headers from semantic configuration 2020-06-09 10:31:02 +02:00
FrameworkBundle.php [FrameworkBundle] use the router context by default for assets 2020-05-04 10:37:33 +02:00
KernelBrowser.php Use is_file() instead of file_exists() where possible 2020-04-24 00:29:19 +02:00
LICENSE Update year in license files 2020-01-01 12:03:25 +01:00
phpunit.xml.dist Merge branch '2.8' into 3.4 2018-11-11 20:48:54 +01:00
README.md add readme files where missing 2016-03-07 11:36:15 +01:00