Service/Connector.php
public function to($connector)
    {
        if(!array_key_exists($connector, $this->connectors))
        {
            throw new ConnectorException(
                "Connector [$connector] not found. Available connectors: " .
                implode(', ', array_keys($this->connectors)) . '.'
            );
        }

        return $this->connectors[$connector];
    }
public function to($connector)
    {
        if(!array_key_exists($connector, $this->connectors))
        {
            throw new ConnectorException(
                "Connector [$connector] not found. Available connectors: " .
                implode(', ', array_keys($this->connectors)) . '.'
            );
        }

        return $this->connectors[$connector];
    }
public function to ( $ connector ) { if ( ! array_key_exists ( $ connector , $ this -> connectors ) ) { throw new ConnectorException ( "Connector [$connector] not found. Available connectors: " . implode ( ', ' , array_keys ( $ this -> connectors ) ) . '.' ) ; } return $ this -> connectors [ $ connector ] ; }
Get connector instance

@param  string $connector Connector name
@return ConnectorInterface
Get connector instance