| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 14 | protected function configure() |
|
| 28 | { |
||
| 29 | $this |
||
| 30 | // the name of the command (the part after "bin/bluzman") |
||
| 31 | 14 | ->setName('run') |
|
| 32 | // the short description shown while running "php bin/bluzman list" |
||
| 33 | 14 | ->setDescription('Run controller') |
|
| 34 | // the full command description shown when running the command with |
||
| 35 | // the "--help" option |
||
| 36 | 14 | ->setHelp('Run specified controller with options params') |
|
| 37 | ; |
||
| 38 | |||
| 39 | 14 | $params = new InputArgument( |
|
| 40 | 14 | 'uri', |
|
| 41 | 14 | InputArgument::REQUIRED, |
|
| 42 | 14 | 'URI to call' |
|
| 43 | ); |
||
| 44 | |||
| 45 | 14 | $this->getDefinition()->addArgument($params); |
|
| 46 | 14 | } |
|
| 47 | |||
| 62 |