Browse Source

Console application has to exit with exitCode

fixes #562
tags/2.0.0-beta
CeBe 12 years ago
parent
commit
22793139ce
  1. 3
      apps/basic/yii
  2. 3
      framework/yii/yii

3
apps/basic/yii

@ -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);

3
framework/yii/yii

@ -20,4 +20,5 @@ $application = new yii\console\Application(array(
'basePath' => __DIR__ . '/console',
'controllerPath' => '@yii/console/controllers',
));
$application->run();
$exitCode = $application->run();
exit($exitCode);

Loading…
Cancel
Save