protected function make($gateway)
    {
        $app = new $gateway($this->config);

        if ($app instanceof GatewayApplicationInterface) {
            return $app;
        }

        throw new InvalidGatewayException("Gateway [$gateway] Must Be An Instance Of GatewayApplicationInterface");
    }
protected function make($gateway)
    {
        $app = new $gateway($this->config);

        if ($app instanceof GatewayApplicationInterface) {
            return $app;
        }

        throw new InvalidGatewayException("Gateway [$gateway] Must Be An Instance Of GatewayApplicationInterface");
    }
protected function make ( $ gateway ) { $ app = new $ gateway ( $ this -> config ) ; if ( $ app instanceof GatewayApplicationInterface ) { return $ app ; } throw new InvalidGatewayException ( "Gateway [$gateway] Must Be An Instance Of GatewayApplicationInterface" ) ; }
Make a gateway.

@author yansongda <me@yansonga.cn>

@param string $gateway

@return GatewayApplicationInterface
Make a gateway .