mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-17 23:45:55 +00:00
Loads the user configuratio, if any
This commit is contained in:
@@ -17,6 +17,16 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
public function register()
|
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 () {
|
$this->app->singleton(LoopInterface::class, function () {
|
||||||
return LoopFactory::create();
|
return LoopFactory::create();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user