This commit is contained in:
2021-09-02 12:00:26 +08:00
parent 7556cb259a
commit cdb3b5b0ad
+12 -3
View File
@@ -4,9 +4,11 @@
namespace Kiri; namespace Kiri;
use Console\Command;
use Exception; use Exception;
use Kiri\Abstracts\Input; 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'; const CONFIG_NAME = '.config.cache';
protected function configure()
{
$this->setName('runtime:builder');
}
/** /**
* @param Input $dtl * @param InputInterface $input
* @param OutputInterface $output
* @return string * @return string
* @throws Exception * @throws Exception
*/ */
public function onHandler(Input $dtl): string public function execute(InputInterface $input, OutputInterface $output): string
{ {
// TODO: Implement onHandler() method. // TODO: Implement onHandler() method.
$annotation = Kiri::app()->getAnnotation(); $annotation = Kiri::app()->getAnnotation();