1 | <?php |
||
15 | class UpdateCommand extends AbstractManagerCommand |
||
16 | { |
||
17 | protected function configure() |
||
28 | |||
29 | /** |
||
30 | * @param InputInterface $input |
||
31 | * @param OutputInterface $output |
||
32 | * @return int|null|void |
||
33 | */ |
||
34 | protected function execute(InputInterface $input, OutputInterface $output) |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | * |
||
44 | * @param OutputInterface $output |
||
45 | * @param $name |
||
46 | * @return void |
||
47 | */ |
||
48 | protected function update(OutputInterface $output, $name) |
||
58 | |||
59 | /** |
||
60 | * Watch for update progress and advance a progress bar. |
||
61 | * |
||
62 | * @param OutputInterface $output |
||
63 | * @return void |
||
64 | */ |
||
65 | protected function watchProgress(OutputInterface $output) |
||
81 | |||
82 | /** |
||
83 | * Get the message to initially display to the user. |
||
84 | * |
||
85 | * @param string $name |
||
86 | * @return string |
||
87 | */ |
||
88 | protected function getPreMessage($name) |
||
101 | |||
102 | /** |
||
103 | * Get the result message. |
||
104 | * |
||
105 | * @param array $pending |
||
106 | * @param string $name |
||
107 | * @return string |
||
108 | */ |
||
109 | protected function getPostMessage(array $pending, $name) |
||
126 | |||
127 | /** |
||
128 | * Given a count, return an appropriate label. |
||
129 | * |
||
130 | * @param $count |
||
131 | * @return string |
||
132 | */ |
||
133 | protected function getResultString($count) |
||
143 | } |
||
144 |