Example #1
0
 /**
  * @param mixed $method
  * @return void
  */
 protected function dispatch($method)
 {
     if (!$this->dispatcher) {
         return;
     }
     $arguments = func_get_args();
     unset($arguments[0]);
     $this->dispatcher->dispatch($method, $arguments);
 }
Example #2
0
 private function dispatchOnException($exception)
 {
     $this->dispatch('onException', $exception, $this->dispatcher->getDefaultDriver());
     throw $exception;
 }