public function make(array $config)
    {
        if (!isset($config['driver'])) {
            throw new InvalidArgumentException('A driver must be specified.');
        }

        return $this->factory($config['driver'])->make($config);
    }
public function make(array $config)
    {
        if (!isset($config['driver'])) {
            throw new InvalidArgumentException('A driver must be specified.');
        }

        return $this->factory($config['driver'])->make($config);
    }
public function make ( array $ config ) { if ( ! isset ( $ config [ 'driver' ] ) ) { throw new InvalidArgumentException ( 'A driver must be specified.' ) ; } return $ this -> factory ( $ config [ 'driver' ] ) -> make ( $ config ) ; }
Create a new gateway instance.

@param string[] $config

@throws \InvalidArgumentException

@return \NotifyMeHQ\Contracts\GatewayInterface
Create a new gateway instance .