modify
This commit is contained in:
@@ -57,9 +57,13 @@ abstract class AbstractConsole extends Component
|
|||||||
*/
|
*/
|
||||||
public function execCommand(Command $command): mixed
|
public function execCommand(Command $command): mixed
|
||||||
{
|
{
|
||||||
fire(Event::SERVER_BEFORE_START);
|
fire(Event::BEFORE_COMMAND_EXECUTE);
|
||||||
|
|
||||||
return $command->onHandler($this->parameters);
|
$data = $command->onHandler($this->parameters);
|
||||||
|
|
||||||
|
fire(Event::AFTER_COMMAND_EXECUTE, [$data]);
|
||||||
|
|
||||||
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user