update:更新服务监控配置至模块内

This commit is contained in:
JaguarJack
2020-09-25 07:30:49 +08:00
parent 45712076d2
commit a3db671328
3 changed files with 71 additions and 48 deletions

View File

@@ -15,6 +15,18 @@ use catcher\ModuleService;
class MonitorService extends ModuleService
{
public function register()
{
parent::register(); // TODO: Change the autogenerated stub
$this->registerConfig();
}
protected function registerConfig()
{
$this->app->config->set(array_merge($this->app->config->get('catch'),
require __DIR__ . DIRECTORY_SEPARATOR . 'config.php'), 'catch');
}
public function loadRouteFrom()
{
// TODO: Implement loadRouteFrom() method.