mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
@@ -31,10 +31,13 @@ class AppServiceProvider extends ServiceProvider
|
||||
|
||||
protected function loadConfigurationFile()
|
||||
{
|
||||
$builtInConfig = config('expose');
|
||||
|
||||
$localConfigFile = getcwd() . DIRECTORY_SEPARATOR . '.expose.php';
|
||||
|
||||
if (file_exists($localConfigFile)) {
|
||||
config()->set('expose', require_once $localConfigFile);
|
||||
$localConfig = require_once $localConfigFile;
|
||||
config()->set('expose', array_merge($builtInConfig, $localConfig));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -46,7 +49,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
]);
|
||||
|
||||
if (file_exists($configFile)) {
|
||||
config()->set('expose', require_once $configFile);
|
||||
$globalConfig = require_once $configFile;
|
||||
config()->set('expose', array_merge($builtInConfig, $globalConfig));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user