Advanced application: fixed console return codes

This commit is contained in:
Alexander Makarov
2013-09-28 01:01:49 +04:00
parent 3e94fb479f
commit 907d24fb9e
2 changed files with 4 additions and 2 deletions

View File

@ -24,4 +24,5 @@ $config = yii\helpers\ArrayHelper::merge(
);
$application = new yii\console\Application($config);
return $application->run();
$exitCode = $application->run();
exit($exitCode);

View File

@ -24,4 +24,5 @@ $config = yii\helpers\ArrayHelper::merge(
);
$application = new yii\console\Application($config);
return $application->run();
$exitCode = $application->run();
exit($exitCode);