修改服务
This commit is contained in:
parent
3e91f16f27
commit
5d1da432c7
@ -8,6 +8,7 @@ use catchAdmin\system\event\LoginLogEvent;
|
|||||||
use catchAdmin\system\event\OperateLogEvent;
|
use catchAdmin\system\event\OperateLogEvent;
|
||||||
use catchAdmin\user\Auth;
|
use catchAdmin\user\Auth;
|
||||||
use catcher\command\BackupCommand;
|
use catcher\command\BackupCommand;
|
||||||
|
use catcher\command\CompressPackageCommand;
|
||||||
use catcher\command\InstallCommand;
|
use catcher\command\InstallCommand;
|
||||||
use catcher\command\MigrateRunCommand;
|
use catcher\command\MigrateRunCommand;
|
||||||
use catcher\command\ModelGeneratorCommand;
|
use catcher\command\ModelGeneratorCommand;
|
||||||
@ -32,7 +33,6 @@ class CatchAdminService extends Service
|
|||||||
$this->registerMiddleWares();
|
$this->registerMiddleWares();
|
||||||
$this->registerEvents();
|
$this->registerEvents();
|
||||||
$this->registerListeners();
|
$this->registerListeners();
|
||||||
$this->registerClassAlias();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -49,6 +49,7 @@ class CatchAdminService extends Service
|
|||||||
ModelGeneratorCommand::class,
|
ModelGeneratorCommand::class,
|
||||||
SeedRunCommand::class,
|
SeedRunCommand::class,
|
||||||
BackupCommand::class,
|
BackupCommand::class,
|
||||||
|
CompressPackageCommand::class
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@ -92,8 +93,6 @@ class CatchAdminService extends Service
|
|||||||
'loginLog' => LoginLogEvent::class,
|
'loginLog' => LoginLogEvent::class,
|
||||||
'operateLog' => OperateLogEvent::class,
|
'operateLog' => OperateLogEvent::class,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -116,11 +115,4 @@ class CatchAdminService extends Service
|
|||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function registerClassAlias()
|
|
||||||
{
|
|
||||||
class_alias(Auth::class, 'Auth');
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user