src/Common/GatewayFactory.php
public function create($abstract, array $options = [])
    {
        $concrete = $this->getConcrete($abstract);

        if (class_exists($concrete)) {
            return new $concrete($options);
        }

        throw new InvalidArgumentException("The gateway of [$abstract] not supported.");
    }
public function create($abstract, array $options = [])
    {
        $concrete = $this->getConcrete($abstract);

        if (class_exists($concrete)) {
            return new $concrete($options);
        }

        throw new InvalidArgumentException("The gateway of [$abstract] not supported.");
    }
public function create ( $ abstract , array $ options = [ ] ) { $ concrete = $ this -> getConcrete ( $ abstract ) ; if ( class_exists ( $ concrete ) ) { return new $ concrete ( $ options ) ; } throw new InvalidArgumentException ( "The gateway of [$abstract] not supported." ) ; }
Create an instance of the specified market driver.

@param  string  $abstract
@param  array  $options
@return \CryptoMarkets\Common\Gateway

@throws \InvalidArgumentException
Create an instance of the specified market driver .