We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Config\Cache, i see
Config\Cache
//... public $path = WRITEPATH.'cache/'; //...
In Config\BaseConfig, i see
Config\BaseConfig
/** * Retrieve an environment-specific configuration setting * * @param string $property * @param string $prefix * @param string $shortPrefix * * @return mixed */ protected function getEnvValue(string $property, string $prefix, string $shortPrefix) { //... $value = getenv( $property ); //... }
When $property == 'path', getenv() return path property of os, so it override $path property of Cofig\Cache class
path
Cofig\Cache
Now, I fixed it by override getEnvValue method in Config\Cache
protected function getEnvValue(string $property, string $prefix, string $shortPrefix) { //... if ($property == 'path' && $shortPrefix == 'cache' && $prefix == 'Config\Cache') { return null; } $value = getenv( $property ); //... }
The text was updated successfully, but these errors were encountered:
Yes !! Ref link: https://forum.codeigniter.com/thread-70242.html
Sorry, something went wrong.
e83d18f
No branches or pull requests
In
Config\Cache
, i seeIn
Config\BaseConfig
, i seeWhen $property == 'path', getenv() return
path
property of os, so it override $path property ofCofig\Cache
classNow, I fixed it by override getEnvValue method in
Config\Cache
The text was updated successfully, but these errors were encountered: