1 | <?php |
||
6 | class ShareCommand extends AbstractCommand |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * Configures the current command. |
||
11 | */ |
||
12 | protected function configure() |
||
13 | { |
||
14 | $this |
||
15 | ->addDefaults() |
||
16 | ->setName('share') |
||
17 | ->setDescription('Get a full table of all your projects with the xip.io url') |
||
18 | ->setHelp(<<<EOT |
||
19 | The <info>share</info> command shows a table of all your locally installed projects together with the xip.io url. |
||
20 | |||
21 | <info>php skylab.phar share</info> # Will show the xip.io table |
||
22 | |||
23 | EOT |
||
24 | ); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @throws \RuntimeException |
||
29 | */ |
||
30 | protected function doExecute() |
||
45 | |||
46 | private function getIP() { |
||
61 | } |
||
62 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.