Al día de hoy 01/02/2020, las configuraciones para el command necesitan lo siguiente:
<?php
namespace App\Commands;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class HelloWordCommand extends Command {
protected static $defaultName = 'app:hello-word';
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeLn('Hello World');
return 0;
}
}
¿Quieres ver más aportes, preguntas y respuestas de la comunidad? Crea una cuenta o inicia sesión.