1 | <?php |
||
10 | abstract class AbstractBaseCommand extends ContainerAwareCommand |
||
11 | { |
||
12 | const TASKS_PAD_LENGTH = 88; |
||
13 | |||
14 | /** |
||
15 | * Configures common formatting. |
||
16 | */ |
||
17 | protected function configureFormatter(OutputInterface $output) |
||
39 | |||
40 | /** |
||
41 | * @param OutputInterface $output |
||
42 | * @return ProgressBar |
||
43 | */ |
||
44 | protected function createProgressBar(OutputInterface $output) |
||
56 | |||
57 | /** |
||
58 | * @param OutputInterface $output |
||
59 | * @param string $name |
||
60 | */ |
||
61 | protected function writeTaskStart(OutputInterface $output, $name) |
||
65 | |||
66 | /** |
||
67 | * @param OutputInterface $output |
||
68 | */ |
||
69 | protected function writeTaskSuccess(OutputInterface $output) |
||
73 | |||
74 | /** |
||
75 | * @param OutputInterface $output |
||
76 | */ |
||
77 | protected function writeTaskFailure(OutputInterface $output) |
||
81 | |||
82 | /** |
||
83 | * @param OutputInterface $output |
||
84 | * @param string $message |
||
85 | */ |
||
86 | protected function writeSuccessMessage(OutputInterface $output, $message = '') |
||
90 | |||
91 | /** |
||
92 | * @param OutputInterface $output |
||
93 | * @param string $message |
||
94 | */ |
||
95 | protected function writeErrorMessage(OutputInterface $output, $message = '') |
||
99 | } |
||
100 |