Esempio n. 1
0
 /**
  * Debugging.
  *
  * @param \phpbu\App\Event\Debug $event
  */
 public function onDebug(Event\Debug $event)
 {
     $this->debug[] = $event->getMessage();
 }
Esempio n. 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);
     }
 }
Esempio n. 3
0
 /**
  * Debugging.
  *
  * @param \phpbu\App\Event\Debug $event
  */
 public function onDebug(Event\Debug $event)
 {
     if ($this->debug) {
         $this->write($event->getMessage() . PHP_EOL);
     }
 }