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);
    }
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);
    }
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 ) ; }
Obtain or generate a PayMe instance with the specified configuration.

@param string[] $config

@throws \InvalidArgumentException

@return \Shoperti\PayMe\PayMe
Obtain or generate a PayMe instance with the specified configuration .