From d7d0f685dc2c81a96e79c9a597241ccf054294e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sat, 8 Jan 2022 10:07:19 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- kiri-engine/Application.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiri-engine/Application.php b/kiri-engine/Application.php index f2b9297e..63cd1acc 100644 --- a/kiri-engine/Application.php +++ b/kiri-engine/Application.php @@ -31,6 +31,7 @@ use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\ConsoleOutput; +use Symfony\Component\Console\Output\OutputInterface; /** * Class Init @@ -234,6 +235,9 @@ class Application extends BaseApplication if (!($class instanceof HotReload)) { scan_directory(directory('app'), 'App'); } + + $this->container->setBindings(OutputInterface::class, $output); + $class->run($input, $output); fire(new OnAfterCommandExecute()); $output->writeln('ok' . PHP_EOL);