@@ 171-181 (lines=11) @@ | ||
168 | return $result; |
|
169 | } |
|
170 | ||
171 | public function stdout($string) |
|
172 | { |
|
173 | if ($this->isColorEnabled()) { |
|
174 | $args = \func_get_args(); |
|
175 | \array_shift($args); |
|
176 | $string = Console::ansiFormat($string, $args); |
|
177 | } |
|
178 | ||
179 | echo $string; |
|
180 | return \strlen($string); |
|
181 | } |
|
182 | ||
183 | ||
184 | } |
@@ 24-34 (lines=11) @@ | ||
21 | class MigrateController extends \yii\console\controllers\MigrateController |
|
22 | { |
|
23 | ||
24 | public function stdout($string) |
|
25 | { |
|
26 | if ($this->isColorEnabled()) { |
|
27 | $args = \func_get_args(); |
|
28 | \array_shift($args); |
|
29 | $string = Console::ansiFormat($string, $args); |
|
30 | } |
|
31 | ||
32 | echo $string; |
|
33 | return \strlen($string); |
|
34 | } |
|
35 | ||
36 | public function beforeAction($action) |
|
37 | { |