You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
686 B

  1. <?php
  2. namespace OrpheusNET\Logchecker;
  3. use Symfony\Component\Console\Application;
  4. use Symfony\Component\Console\Input\InputInterface;
  5. use Symfony\Component\Console\Output\OutputInterface;
  6. class LogcheckerConsole extends Application {
  7. public function __construct() {
  8. $composer_config = json_decode(file_get_contents(__DIR__.'/../composer.json'), true);
  9. $version = $composer_config['version'];
  10. parent::__construct('Logchecker by Orpheus', $version);
  11. $analyze_command = new Command\AnalyzeCommand();
  12. $this->addCommands([
  13. $analyze_command
  14. ]);
  15. $this->setDefaultCommand($analyze_command->getName(), true);
  16. }
  17. }