| 1 | <?php |
||
| 5 | class CommandRepository |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var array |
||
| 10 | */ |
||
| 11 | protected $commands; |
||
| 12 | |||
| 13 | 7 | public function __construct() |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param $name |
||
| 26 | * @return \Symfony\Component\Console\Command\Command |
||
| 27 | */ |
||
| 28 | 7 | public function getRegisteredCommand($name) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Return all registered commands |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public function getRegisteredCommands() |
||
| 41 | } |
||
| 42 |