protected function resolve($config)
    {
        $name = $config['driver'];

        if (isset($this->instances[$name]) && $this->instances[$name]->getConfig() === $config) {
            return $this->instances[$name];
        }

        return $this->instances[$name] = PayMe::make($config);
    }