public function resolveHandler($command) { if ($command instanceof SelfHandling) { return $command; } return $this->container->make($this->getHandlerClass($command)); }
/** * Get the handler instance for the given command. * * @param mixed $command * @return mixed * @static */ public static function resolveHandler($command) { return \Illuminate\Bus\Dispatcher::resolveHandler($command); }