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

17 lines
524 B
PHP

<?php
use jrosset\CliProgram\AutoDiscoveryApplication;
use jrosset\CliProgram\AutoPrefixApplication;
use jrosset\CliProgram\SafeApplication;
class Application extends \Symfony\Component\Console\Application {
use SafeApplication;
use AutoDiscoveryApplication;
use AutoPrefixApplication;
public function __construct (string $name = 'UNKNOWN', string $version = 'UNKNOWN') {
parent::__construct($name, $version);
$this->addAutoDiscoveredCommands();
$this->applyAutoPrefixes();
}
}