Silly v1.6.0 Release Notes

Release Date: 2017-05-22 // over 4 years ago

    ๐Ÿ‘ #33 & #39 Support PSR-11

    ๐Ÿ‘ #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');});
    
    • 0๏ธโƒฃ #34 & #35 Support default values for arguments/options with - in them:

      $console->command('import [number-of-clicks]', function ($numberOfClicks = 1) {var_dump($numberOfClicks); // prints 1});