protected function getConfig($services)
    {
        if ($this->config !== null) {
            return $this->config;
        }

        if (!$services->has('Config')) {
            $this->config = [];

            return $this->config;
        }

        $config = $services->get('Config');
        if (!isset($config['sphinxql'])
            || !is_array($config['sphinxql'])
        ) {
            $this->config = [];

            return $this->config;
        }

        $config = $config['sphinxql'];
        if (!isset($config['adapters'])
            || !is_array($config['adapters'])
        ) {
            $this->config = [];

            return $this->config;
        }

        $this->config = $config['adapters'];

        return $this->config;
    }
protected function getConfig($services)
    {
        if ($this->config !== null) {
            return $this->config;
        }

        if (!$services->has('Config')) {
            $this->config = [];

            return $this->config;
        }

        $config = $services->get('Config');
        if (!isset($config['sphinxql'])
            || !is_array($config['sphinxql'])
        ) {
            $this->config = [];

            return $this->config;
        }

        $config = $config['sphinxql'];
        if (!isset($config['adapters'])
            || !is_array($config['adapters'])
        ) {
            $this->config = [];

            return $this->config;
        }

        $this->config = $config['adapters'];

        return $this->config;
    }
protected function getConfig ( $ services ) { if ( $ this -> config !== null ) { return $ this -> config ; } if ( ! $ services -> has ( 'Config' ) ) { $ this -> config = [ ] ; return $ this -> config ; } $ config = $ services -> get ( 'Config' ) ; if ( ! isset ( $ config [ 'sphinxql' ] ) || ! is_array ( $ config [ 'sphinxql' ] ) ) { $ this -> config = [ ] ; return $ this -> config ; } $ config = $ config [ 'sphinxql' ] ; if ( ! isset ( $ config [ 'adapters' ] ) || ! is_array ( $ config [ 'adapters' ] ) ) { $ this -> config = [ ] ; return $ this -> config ; } $ this -> config = $ config [ 'adapters' ] ; return $ this -> config ; }
Get db configuration, if any

@param  ServiceLocatorInterface|ContainerInterface $services
@return array
Get db configuration if any