make use of 2.0.13 ExitCode class in console command

This commit is contained in:
Carsten Brandt 2017-11-08 09:58:56 +01:00
parent 8882b2b7d8
commit c769bd1b0a
No known key found for this signature in database
GPG Key ID: BE4F41DE1DEEEED0

View File

@ -8,6 +8,7 @@
namespace app\commands;
use yii\console\Controller;
use yii\console\ExitCode;
/**
* This command echoes the first argument that you have entered.
@ -26,5 +27,7 @@ class HelloController extends Controller
public function actionIndex($message = 'hello world')
{
echo $message . "\n";
return ExitCode::OK;
}
}