1 | <?php |
||
14 | class SelfUpdateCommand extends Command |
||
15 | { |
||
16 | private $updater; |
||
17 | |||
18 | public function __construct(Updater $updater) |
||
19 | { |
||
20 | parent::__construct('self-update'); |
||
21 | $this->updater = $updater; |
||
22 | } |
||
23 | |||
24 | protected function configure(): void |
||
25 | { |
||
26 | $this |
||
27 | ->setDescription(sprintf( |
||
28 | 'Update %s to most recent stable build.', |
||
29 | $this->getLocalPharName() |
||
30 | )) |
||
31 | ->setAliases(['selfupdate']) |
||
32 | ; |
||
33 | } |
||
34 | |||
35 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
54 | |||
55 | private function getLocalPharName(): string |
||
56 | { |
||
59 | } |
||
60 |