<?phpnamespaceyiiunit\framework\console\controllers;/** * StdOutBufferControllerTrait is a trait, which can be applied to [[yii\console\Controller]], * allowing to store all output into internal buffer instead of direct sending it to 'stdout' */traitStdOutBufferControllerTrait{/** * @var string output buffer. */private$stdOutBuffer='';publicfunctionstdout($string){$this->stdOutBuffer.=$string;}publicfunctionflushStdOutBuffer(){$result=$this->stdOutBuffer;$this->stdOutBuffer='';return$result;}}