mirror of https://github.com/myphpfw/config.git
config file can be needed multiple times
This commit is contained in:
parent
1f7a120a6b
commit
e4b41c0944
|
@ -4,7 +4,7 @@
|
|||
private array $config;
|
||||
|
||||
public function __construct(string $config_path = "/config.php") {
|
||||
require_once(__DIR__."/../..".$config_path);
|
||||
require(__DIR__."/../..".$config_path);
|
||||
$this->config = $global_config;
|
||||
unset($global_config);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue