update:模块配置加载
This commit is contained in:
@@ -28,7 +28,9 @@ abstract class ModuleService extends Service
|
||||
|
||||
$this->registerEvents();
|
||||
|
||||
$this->registerCommands();;
|
||||
$this->registerCommands();
|
||||
|
||||
$this->registerConfig();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -44,6 +46,19 @@ abstract class ModuleService extends Service
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* register config
|
||||
*
|
||||
* @time 2020年09月25日
|
||||
* @return void
|
||||
*/
|
||||
protected function registerConfig()
|
||||
{
|
||||
if (method_exists($this, 'loadConfig')) {
|
||||
$this->app->config->set(array_merge($this->app->config->get('catch'), $this->loadConfig()), 'catch');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册commands
|
||||
*
|
||||
|
Reference in New Issue
Block a user