/**
  * Dispatch a command to its appropriate handler in the current process.
  *
  * @param mixed $command
  * @param \Closure|null $afterResolving
  * @return mixed 
  * @static 
  */
 public static function dispatchNow($command, $afterResolving = null)
 {
     return \Collective\Bus\Dispatcher::dispatchNow($command, $afterResolving);
 }