示例#1
0
文件: Json.php 项目: imjerrybao/phpbu
 /**
  * Debugging.
  *
  * @param \phpbu\App\Event\Debug $event
  */
 public function onDebug(Event\Debug $event)
 {
     $this->debug[] = $event->getMessage();
 }
示例#2
0
 /**
  * Debugging.
  *
  * @param \phpbu\App\Event\Debug $event
  */
 public function onDebug(Event\Debug $event)
 {
     if ($this->debug) {
         $this->write(wordwrap($event->getMessage(), 70, PHP_EOL, true) . PHP_EOL);
     }
 }
示例#3
0
 /**
  * Debugging.
  *
  * @param \phpbu\App\Event\Debug $event
  */
 public function onDebug(Event\Debug $event)
 {
     if ($this->debug) {
         $this->write($event->getMessage() . PHP_EOL);
     }
 }