1 | <?php |
||
9 | class HelpCommand |
||
10 | { |
||
11 | /** var Application */ |
||
12 | protected $application; |
||
13 | |||
14 | /** |
||
15 | * Create a help document from a Symfony Console command |
||
16 | */ |
||
17 | public function __construct(Application $application) |
||
21 | |||
22 | public function getApplication() |
||
26 | |||
27 | /** |
||
28 | * Run the help command |
||
29 | * |
||
30 | * @command my-help |
||
31 | * @return \Consolidation\AnnotatedCommand\Help\HelpDocument |
||
32 | */ |
||
33 | public function help($commandName = 'help') |
||
40 | |||
41 | /** |
||
42 | * Create a help document. |
||
43 | */ |
||
44 | protected function getHelpDocument($command) |
||
48 | } |
||
49 |