mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-14 03:56:53 +01:00
(Fixes issue 1493)
This commit is contained in:
@@ -130,6 +130,7 @@ EOD;
|
||||
if(($_path_=@getenv('YIIC_SHELL_COMMAND_PATH'))!==false)
|
||||
$_runner_->addCommands($_path_);
|
||||
$_commands_=$_runner_->commands;
|
||||
$log=Yii::app()->log;
|
||||
|
||||
while(($_line_=$this->readline("\n>> "))!==false)
|
||||
{
|
||||
@@ -153,6 +154,12 @@ EOD;
|
||||
else
|
||||
echo $e;
|
||||
}
|
||||
|
||||
if($log)
|
||||
{
|
||||
Yii::getLogger()->flush();
|
||||
$log->processLogs(new CEvent($this));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user