protected function getConnector($driver)
    {
        if (isset($this->connectors[$driver]))
        {
            return call_user_func($this->connectors[$driver]);
        }

        throw new \InvalidArgumentException("No connector for [$driver]");
    }
protected function getConnector($driver)
    {
        if (isset($this->connectors[$driver]))
        {
            return call_user_func($this->connectors[$driver]);
        }

        throw new \InvalidArgumentException("No connector for [$driver]");
    }
protected function getConnector ( $ driver ) { if ( isset ( $ this -> connectors [ $ driver ] ) ) { return call_user_func ( $ this -> connectors [ $ driver ] ) ; } throw new \ InvalidArgumentException ( "No connector for [$driver]" ) ; }
Get the connector for a given driver.

@param  string  $driver
@return \Nova\Queue\Contracts\ConnectorInterface

@throws \InvalidArgumentException
Get the connector for a given driver .