src/Viserio/Component/Bus/Dispatcher.php
public function resolveHandler($command)
    {
        if (\method_exists($command, $this->method)) {
            return $command;
        }

        return $this->container->get($this->getHandlerClass($command));
    }
public function resolveHandler($command)
    {
        if (\method_exists($command, $this->method)) {
            return $command;
        }

        return $this->container->get($this->getHandlerClass($command));
    }
{@inheritdoc}