Illuminate\Bus\Dispatcher::resolveHandler PHP Метод

resolveHandler() публичный метод

Get the handler instance for the given command.
public resolveHandler ( mixed $command ) : mixed
$command mixed
Результат mixed
    public function resolveHandler($command)
    {
        if ($command instanceof SelfHandling) {
            return $command;
        }
        return $this->container->make($this->getHandlerClass($command));
    }

Usage Example

Пример #1
0
 /**
  * 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);
 }