改名
This commit is contained in:
@@ -22,7 +22,6 @@ use Kiri\Events\OnBeforeCommandExecute;
|
|||||||
use Kiri\Exception\NotFindClassException;
|
use Kiri\Exception\NotFindClassException;
|
||||||
use Kiri\FileListen\FileChangeCustomProcess;
|
use Kiri\FileListen\FileChangeCustomProcess;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use Server\ServerCommand;
|
|
||||||
use Server\ServerProviders;
|
use Server\ServerProviders;
|
||||||
use stdClass;
|
use stdClass;
|
||||||
use Swoole\Process;
|
use Swoole\Process;
|
||||||
@@ -30,6 +29,7 @@ use Swoole\Timer;
|
|||||||
use Symfony\Component\Console\Application as ConsoleApplication;
|
use Symfony\Component\Console\Application as ConsoleApplication;
|
||||||
use Symfony\Component\Console\Command\Command;
|
use Symfony\Component\Console\Command\Command;
|
||||||
use Symfony\Component\Console\Input\ArgvInput;
|
use Symfony\Component\Console\Input\ArgvInput;
|
||||||
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\ConsoleOutput;
|
use Symfony\Component\Console\Output\ConsoleOutput;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -192,12 +192,14 @@ class Application extends BaseApplication
|
|||||||
*/
|
*/
|
||||||
public function execute(array $argv): void
|
public function execute(array $argv): void
|
||||||
{
|
{
|
||||||
|
/** @var InputInterface $input */
|
||||||
[$input, $output] = $this->argument($argv);
|
[$input, $output] = $this->argument($argv);
|
||||||
try {
|
try {
|
||||||
$console = di(ConsoleApplication::class);
|
$console = di(ConsoleApplication::class);
|
||||||
$command = $input->getFirstArgument();
|
$command = $input->getFirstArgument();
|
||||||
if (empty($command)) {
|
if (empty($command)) {
|
||||||
$command = 'list';
|
$input->setArgument('action', 'restart');
|
||||||
|
$command = 'sw:server';
|
||||||
}
|
}
|
||||||
$command = $console->find($command);
|
$command = $console->find($command);
|
||||||
if ($command instanceof Command) {
|
if ($command instanceof Command) {
|
||||||
|
|||||||
Reference in New Issue
Block a user