modify
This commit is contained in:
@@ -7,6 +7,7 @@ namespace Console;
|
||||
use Exception;
|
||||
use Snowflake\Abstracts\Component;
|
||||
use Snowflake\Abstracts\Input;
|
||||
use Snowflake\Event;
|
||||
use Snowflake\Snowflake;
|
||||
|
||||
/**
|
||||
@@ -56,7 +57,9 @@ abstract class AbstractConsole extends Component
|
||||
*/
|
||||
public function execCommand(Command $command): mixed
|
||||
{
|
||||
return $command->onHandler($this->parameters);
|
||||
fire(Event::SERVER_BEFORE_START);
|
||||
|
||||
return $command->onHandler($this->parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -135,8 +135,6 @@ class Application extends BaseApplication
|
||||
public function start(Input $argv): void
|
||||
{
|
||||
try {
|
||||
fire(Event::SERVER_BEFORE_START);
|
||||
|
||||
/** @var Console $manager */
|
||||
$manager = Snowflake::app()->get('console');
|
||||
$manager->register(Runtime::class);
|
||||
|
||||
Reference in New Issue
Block a user