1.6.0
-
#39 Support PHP 7.0 and up only
-
#36 & #38 Allow to inject the
SymfonyStyle
object introduced in Symfony 2.8
use \Symfony\Component\Console\Style\SymfonyStyle;
...
$app->command('greet', function (SymfonyStyle $io) {
$io->write('hello');
});
$console->command('import [number-of-clicks]', function ($numberOfClicks = 1) {
var_dump($numberOfClicks); // prints 1
});