1 | <?php |
||
17 | class ConsoleCommand extends Command { |
||
18 | |||
19 | /** |
||
20 | * @var null|InputInterface |
||
21 | */ |
||
22 | private $input; |
||
23 | |||
24 | /** |
||
25 | * @var null|OutputInterface |
||
26 | */ |
||
27 | private $output; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | 5 | protected function configure() { |
|
38 | |||
39 | |||
40 | /** |
||
41 | * Return progress panel according to application options |
||
42 | * |
||
43 | * @param int $max |
||
44 | * @return InlineProgressPanel|ProgressPanel |
||
45 | * @throws \Exception |
||
46 | */ |
||
47 | protected function getProgressPanel($max = 0) { |
||
60 | |||
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | 1 | protected function initialize(InputInterface $input, OutputInterface $output) { |
|
85 | |||
86 | |||
87 | /** |
||
88 | * We use execute method for command logic. |
||
89 | * |
||
90 | * @see ConsoleCommand::execute |
||
91 | * @deprecated |
||
92 | * |
||
93 | * @param callable $code |
||
94 | * @return Command|void |
||
95 | * @throws \Exception |
||
96 | */ |
||
97 | 1 | public function setCode(callable $code) { |
|
100 | |||
101 | |||
102 | /** |
||
103 | * @return null|OutputInterface |
||
104 | */ |
||
105 | 1 | public function getOutput() { |
|
108 | |||
109 | |||
110 | /** |
||
111 | * @return null|InputInterface |
||
112 | */ |
||
113 | public function getInput() { |
||
116 | |||
117 | |||
118 | /** |
||
119 | * Run command only with single instance |
||
120 | * |
||
121 | * @return bool |
||
122 | */ |
||
123 | 1 | public function isSingleInstance() { |
|
126 | |||
127 | } |