From cdb3b5b0add03a793d12303f5d7172e953c6c1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 2 Sep 2021 12:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/Runtime.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/core/Runtime.php b/core/Runtime.php index 1eb7bd32..a6143c27 100644 --- a/core/Runtime.php +++ b/core/Runtime.php @@ -4,9 +4,11 @@ namespace Kiri; -use Console\Command; use Exception; use Kiri\Abstracts\Input; +use Symfony\Component\Console\Command\Command; +use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Output\OutputInterface; /** @@ -26,12 +28,19 @@ class Runtime extends Command const CONFIG_NAME = '.config.cache'; + protected function configure() + { + $this->setName('runtime:builder'); + } + + /** - * @param Input $dtl + * @param InputInterface $input + * @param OutputInterface $output * @return string * @throws Exception */ - public function onHandler(Input $dtl): string + public function execute(InputInterface $input, OutputInterface $output): string { // TODO: Implement onHandler() method. $annotation = Kiri::app()->getAnnotation();