| @@ 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 | { |
|
| @@ 181-191 (lines=11) @@ | ||
| 178 | return $result; |
|
| 179 | } |
|
| 180 | ||
| 181 | public function stdout($string) |
|
| 182 | { |
|
| 183 | if ($this->isColorEnabled()) { |
|
| 184 | $args = \func_get_args(); |
|
| 185 | \array_shift($args); |
|
| 186 | $string = Console::ansiFormat($string, $args); |
|
| 187 | } |
|
| 188 | ||
| 189 | echo $string; |
|
| 190 | return \strlen($string); |
|
| 191 | } |
|
| 192 | ||
| 193 | ||
| 194 | } |
|