From c769bd1b0a5cff76457c3ba0a4f244710e0e261a Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 8 Nov 2017 09:58:56 +0100 Subject: [PATCH] make use of 2.0.13 ExitCode class in console command --- commands/HelloController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/HelloController.php b/commands/HelloController.php index 86ab8b8..7f019cc 100644 --- a/commands/HelloController.php +++ b/commands/HelloController.php @@ -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; } }