1 | <?php |
||
25 | class AbstractCommand extends Command |
||
26 | { |
||
27 | /** |
||
28 | * @param InputInterface $input |
||
29 | * @param OutputInterface $output |
||
30 | */ |
||
31 | protected function initialize(InputInterface $input, OutputInterface $output) |
||
36 | |||
37 | /** |
||
38 | * @param InputInterface|null $input |
||
39 | * @param string|null $name |
||
40 | * |
||
41 | * @return ConnectionInterface |
||
42 | */ |
||
43 | protected function getConnection(InputInterface $input = null, $name = null) |
||
56 | |||
57 | /** |
||
58 | * @param string|array $path |
||
59 | * @param string|array $exclude |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | protected function getSchemas($path, $exclude = []) |
||
69 | |||
70 | /** |
||
71 | * @param OutputInterface $output |
||
72 | * @param string $message |
||
73 | * @param bool $newLine |
||
74 | * @param int $verbosity |
||
75 | */ |
||
76 | private function write(OutputInterface $output, $message, $newLine = true, $verbosity = OutputInterface::VERBOSITY_VERBOSE) |
||
85 | |||
86 | /** |
||
87 | * @param OutputInterface $output |
||
88 | * @param string $message |
||
89 | * @param bool $newLine |
||
90 | */ |
||
91 | protected function debug(OutputInterface $output, $message, $newLine = true) |
||
95 | |||
96 | /** |
||
97 | * @param OutputInterface $output |
||
98 | * @param string $message |
||
99 | * @param bool $newLine |
||
100 | */ |
||
101 | protected function verbose(OutputInterface $output, $message, $newLine = true) |
||
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | protected function getSchemaPath() |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | protected function getSqlOutputPath() |
||
121 | } |
||
122 |