validator cleanup.

This commit is contained in:
Qiang Xue
2013-01-20 19:39:56 -05:00
parent 76b153a368
commit 78396afb02
6 changed files with 65 additions and 143 deletions

View File

@@ -138,7 +138,7 @@ class Logger extends \yii\base\Component
*/
public function flush($final = false)
{
$this->trigger($final ? 'finalFlush' : 'flush');
$this->trigger($final ? self::EVENT_FINAL_FLUSH : self::EVENT_FLUSH);
$this->messages = array();
}