catchConsole加入容器,提高性能
This commit is contained in:
@@ -62,7 +62,11 @@ class CatchAdminService extends Service
|
||||
*/
|
||||
protected function registerCommands(): void
|
||||
{
|
||||
$this->commands((new CatchConsole($this->app))->commands());
|
||||
$catchConsole = new CatchConsole($this->app);
|
||||
|
||||
$this->app->bind('catch_console', $catchConsole);
|
||||
|
||||
$this->commands($catchConsole->commands());
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
Reference in New Issue
Block a user