| 1 | <?php |
||
| 16 | class Command extends BaseCommand |
||
| 17 | { |
||
| 18 | const ARG_CONFIG_PATH = 'config-path'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $defaultConfigPath; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var InputInterface |
||
| 27 | */ |
||
| 28 | protected $input; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var OutputInterface |
||
| 32 | */ |
||
| 33 | protected $output; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Constructor. |
||
| 37 | * |
||
| 38 | * @param string|null $name The name of the command; passing null means it must be set in configure() |
||
| 39 | * |
||
| 40 | * @throws \LogicException When the command name is empty |
||
| 41 | */ |
||
| 42 | 6 | public function __construct($name = null) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 6 | protected function getDefaultConfiguration() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $name |
||
| 59 | * @param array $args |
||
| 60 | * |
||
| 61 | * @return int |
||
| 62 | * @throws \LogicException |
||
| 63 | */ |
||
| 64 | 1 | protected function runCommand($name, array $args) |
|
| 81 | } |
||
| 82 |