Commit 22793139 by CeBe

Console application has to exit with exitCode

fixes #562
parent 9a0717dc
......@@ -19,4 +19,5 @@ require(__DIR__ . '/vendor/autoload.php');
$config = require(__DIR__ . '/config/console.php');
$application = new yii\console\Application($config);
return $application->run();
$exitCode = $application->run();
exit($exitCode);
......@@ -20,4 +20,5 @@ $application = new yii\console\Application(array(
'basePath' => __DIR__ . '/console',
'controllerPath' => '@yii/console/controllers',
));
$application->run();
\ No newline at end of file
$exitCode = $application->run();
exit($exitCode);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment