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