public function getConnectorConfigurations(string $connectorName)
    {
        $response = array();
        //====================================================================//
        //  Search in Configured Servers
        foreach ($this->configuration['connections'] as $serverId => $configuration) {
            if ($configuration['connector'] != $connectorName) {
                continue;
            }
            //====================================================================//
            //  Populate Servers Config From Parameters
            $response[$serverId] = $configuration;
            //====================================================================//
            //  Complete Servers Config From Cache
            if ($this->configuration['cache']['enabled']) {
                $response[$serverId] = array_replace_recursive(
                    $configuration,
                    $this->getConnectorConfigurationFromCache($serverId)
                );
            }
        }

        return $response;
    }
public function getConnectorConfigurations(string $connectorName)
    {
        $response = array();
        //====================================================================//
        //  Search in Configured Servers
        foreach ($this->configuration['connections'] as $serverId => $configuration) {
            if ($configuration['connector'] != $connectorName) {
                continue;
            }
            //====================================================================//
            //  Populate Servers Config From Parameters
            $response[$serverId] = $configuration;
            //====================================================================//
            //  Complete Servers Config From Cache
            if ($this->configuration['cache']['enabled']) {
                $response[$serverId] = array_replace_recursive(
                    $configuration,
                    $this->getConnectorConfigurationFromCache($serverId)
                );
            }
        }

        return $response;
    }
public function getConnectorConfigurations ( string $ connectorName ) { $ response = array ( ) ; //====================================================================// //  Search in Configured Servers foreach ( $ this -> configuration [ 'connections' ] as $ serverId => $ configuration ) { if ( $ configuration [ 'connector' ] != $ connectorName ) { continue ; } //====================================================================// //  Populate Servers Config From Parameters $ response [ $ serverId ] = $ configuration ; //====================================================================// //  Complete Servers Config From Cache if ( $ this -> configuration [ 'cache' ] [ 'enabled' ] ) { $ response [ $ serverId ] = array_replace_recursive ( $ configuration , $ this -> getConnectorConfigurationFromCache ( $ serverId ) ) ; } } return $ response ; }
Return List of Servers Using a Connector

@param string $connectorName

@return array
Return List of Servers Using a Connector