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