1 | <?php |
||
21 | abstract class AbstractCacheCommand extends ContainerAwareCommand |
||
22 | { |
||
23 | /** |
||
24 | * @var OutputInterface |
||
25 | */ |
||
26 | protected $output; |
||
27 | |||
28 | /** |
||
29 | * @var bool |
||
30 | */ |
||
31 | protected $machineReadable; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | protected $actionFailures; |
||
37 | |||
38 | /** |
||
39 | * @param InputInterface $input |
||
40 | * @param OutputInterface $output |
||
41 | */ |
||
42 | protected function initializeInstState(InputInterface $input, OutputInterface $output) |
||
48 | |||
49 | /** |
||
50 | * @param InputInterface $input |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | protected function resolveFilters(InputInterface $input) |
||
69 | |||
70 | /** |
||
71 | * @param string $command |
||
72 | */ |
||
73 | protected function writeCommandHeading($command) |
||
85 | |||
86 | /** |
||
87 | * @param string[] $filters |
||
88 | * @param string[] $targets |
||
89 | * @param bool $glob |
||
90 | */ |
||
91 | protected function writeResultSummary(array $filters, array $targets, $glob = false) |
||
113 | |||
114 | /** |
||
115 | * @param string $filter |
||
116 | * @param string|null $target |
||
117 | */ |
||
118 | protected function writeActionStart($filter, $target = null) |
||
126 | |||
127 | /** |
||
128 | * @param string $result |
||
129 | * @param bool $continued |
||
130 | */ |
||
131 | protected function writeActionResult($result, $continued = true) |
||
139 | |||
140 | /** |
||
141 | * @param string $detail |
||
142 | */ |
||
143 | protected function writeActionDetail($detail) |
||
148 | |||
149 | /** |
||
150 | * @param \Exception $exception |
||
151 | */ |
||
152 | protected function writeActionException(\Exception $exception) |
||
158 | |||
159 | /** |
||
160 | * @return int |
||
161 | */ |
||
162 | protected function getReturnCode() |
||
166 | |||
167 | /** |
||
168 | * @return CacheManager |
||
169 | */ |
||
170 | protected function getCacheManager() |
||
180 | |||
181 | /** |
||
182 | * @return FilterManager |
||
183 | */ |
||
184 | protected function getFilterManager() |
||
194 | |||
195 | /** |
||
196 | * @return DataManager |
||
197 | */ |
||
198 | protected function getDataManager() |
||
208 | |||
209 | /** |
||
210 | * @param int $count |
||
211 | */ |
||
212 | private function writeNewline($count = 1) |
||
216 | |||
217 | /** |
||
218 | * @param int $size |
||
219 | * @param string $word |
||
220 | * |
||
221 | * @return string |
||
222 | */ |
||
223 | private function getPluralized($size, $word) |
||
227 | |||
228 | /** |
||
229 | * @return string |
||
230 | */ |
||
231 | private function getResultSummaryFailureMarkup() |
||
242 | } |
||
243 |
If you suppress an error, we recommend checking for the error condition explicitly: