修改服务

This commit is contained in:
wuyanwen 2019-12-17 09:02:29 +08:00
parent 3e91f16f27
commit 5d1da432c7

View File

@ -8,6 +8,7 @@ use catchAdmin\system\event\LoginLogEvent;
use catchAdmin\system\event\OperateLogEvent;
use catchAdmin\user\Auth;
use catcher\command\BackupCommand;
use catcher\command\CompressPackageCommand;
use catcher\command\InstallCommand;
use catcher\command\MigrateRunCommand;
use catcher\command\ModelGeneratorCommand;
@ -32,7 +33,6 @@ class CatchAdminService extends Service
$this->registerMiddleWares();
$this->registerEvents();
$this->registerListeners();
$this->registerClassAlias();
}
/**
@ -49,6 +49,7 @@ class CatchAdminService extends Service
ModelGeneratorCommand::class,
SeedRunCommand::class,
BackupCommand::class,
CompressPackageCommand::class
]);
}
/**
@ -92,8 +93,6 @@ class CatchAdminService extends Service
'loginLog' => LoginLogEvent::class,
'operateLog' => OperateLogEvent::class,
]);
}
/**
@ -116,11 +115,4 @@ class CatchAdminService extends Service
]
]);
}
public function registerClassAlias()
{
class_alias(Auth::class, 'Auth');
}
}