Hello,
I develop applications whose code is shared by multiple instances on the same platform (multiple URLs, with separate parameters for each). To do that, I've modified the
index.php
code with:
Code:
if (is_file($file = $_SERVER["envPath"] . DIRECTORY_SEPARATOR . ".env") && is_readable($file)) {
(new CodeIgniter\Config\DotEnv($_SERVER["envPath"],".env"))->load();
The envPath variable is assigned in apache2 vhost, each instance has its own vhost file.
But in the last version (4.5.0), this code as migrated to the core of CodeIgniter. If I can change the
Boot.php file to insert it, a
will overwrite it.
Have you a solution to avoid this overwrite?
Thanks,
Eric Q.