Example #1
0
 /**
  * Tell Blode to record this run of the application.
  * Child classes of Application can call this as-appropriate.
  */
 protected function blodeRun()
 {
     $run = ['event' => 'app.run', 'app' => get_class($this)];
     Event::debug($run);
 }
Example #2
0
 public function __construct($message, $code = 0, Exception $previous = null)
 {
     Event::debug(array('event' => 'SparkException:' . $message, 'app' => get_class($this), 'path' => $_SERVER['REQUEST_URI'], 'remote_addr' => $_SERVER['REMOTE_ADDR']));
     parent::__construct($message, $code, $previous);
 }