CraftCli\Command\Command::execute PHP 메소드

execute() 보호된 메소드

Execute the console command.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
리턴 mixed
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $start = microtime(true);
        $return = $this->fire();
        if ($this->showsDuration) {
            $output->writeln(sprintf('<info>Took %d seconds.</info>', microtime(true) - $start));
        }
        return $return;
    }