Exemple #1
0
 public function __construct($code, $data = null)
 {
     $this->code = $code;
     $time_start = microtime(true);
     Moriarti::dispatch($this, $data);
     $time_end = microtime(true);
     //Subtract the two times to get seconds
     $time = $time_end - $time_start;
     file_put_contents(__DIR__ . '/messages.log', $this->code . ' - ' . $time . "\r\n", FILE_APPEND);
 }