Loads the user configuratio, if any

This commit is contained in:
Nuno Maduro
2020-04-22 22:21:04 +02:00
parent c559c4ad7c
commit cd9eb64253

View File

@@ -17,6 +17,16 @@ class AppServiceProvider extends ServiceProvider
public function register()
{
$configFile = implode(DIRECTORY_SEPARATOR, [
$_SERVER['HOME'],
'.expose',
'config.php'
]);
if (file_exists($configFile)) {
config()->set('expose', require_once $configFile);
}
$this->app->singleton(LoopInterface::class, function () {
return LoopFactory::create();
});