Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3925

Does Symfony 4 load the environment variables on every request in the "prod" environment?

$
0
0

Does Symfony 4 somehow save or cache the environment variable parameters in the "prod" environment or does it retrieve them on every request?

My problem is that when I host my Symfony application using Apache, I need to list all the environment variables by defining them all in the VirtualHost configuration using SetEnv directives; and I would prefer not having to do that.

I would expect that when using the PHP CLI, I could "compile" the Symfony project by capturing or caching the parameters so that when the application is run through Apache, it uses these "cached" parameters.

Is it doable or the SetEnv approach is the only one?


Viewing all articles
Browse latest Browse all 3925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>