yii2-console-runner-extension
yii2-console-runner-extension copied to clipboard
Ability to execute code synchronously
A case:
I make an ajax request and wait the real exit code for show the result to the user. In background mode I don't have access to the real exit code.
public function actionRunManualSync() {
$exitCode = null;
\Yii::$app->consoleRunner->run('beru/sync', $exitCode);
return $exitCode;
}