fix: [app:bootstrap] Automatically cast `debug` setting in bootstrap.php to migrate config
parent
e9a79c54fc
commit
2c8c967c06
|
@ -94,6 +94,10 @@ if (file_exists(CONFIG . 'app_local.php')) {
|
||||||
$settings = file_get_contents(CONFIG . 'config.json');
|
$settings = file_get_contents(CONFIG . 'config.json');
|
||||||
$settings = json_decode($settings, true);
|
$settings = json_decode($settings, true);
|
||||||
foreach ($settings as $path => $setting) {
|
foreach ($settings as $path => $setting) {
|
||||||
|
if($path == 'debug') {
|
||||||
|
Configure::write($path, (bool) $setting);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Configure::write($path, $setting);
|
Configure::write($path, $setting);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue