当在 laravel 中调度命令时,是否可以调用多个命令处理程序
Is it possible to call multiple command handlers, when a command is dispatched in laravel
派发命令时我必须调用多个命令处理程序,我知道我们可以使用事件来处理多个事件处理程序。
我想知道 Laravel 中的一个命令是否可以有多个命令处理程序。
来自 laravel 文档...
Calling Other Commands
Sometimes you may wish to call other commands from your command. You may do so using the call method:
$this->call('command:name', ['argument' => 'foo', '--option' => 'bar']);
派发命令时我必须调用多个命令处理程序,我知道我们可以使用事件来处理多个事件处理程序。
我想知道 Laravel 中的一个命令是否可以有多个命令处理程序。
来自 laravel 文档...
Calling Other Commands
Sometimes you may wish to call other commands from your command. You may do so using the call method:
$this->call('command:name', ['argument' => 'foo', '--option' => 'bar']);