private static function getClass($name, array $config)
    {
        if (!empty($config['custom_adapters_namespace'])) {
            $namespaces = (array) $config['custom_adapters_namespace'];

            foreach ($namespaces as $namespace) {
                $class = $namespace.$name;

                if (class_exists($class)) {
                    return $class;
                }
            }
        }

        return 'Embed\\Adapters\\'.$name;
    }
private static function getClass($name, array $config)
    {
        if (!empty($config['custom_adapters_namespace'])) {
            $namespaces = (array) $config['custom_adapters_namespace'];

            foreach ($namespaces as $namespace) {
                $class = $namespace.$name;

                if (class_exists($class)) {
                    return $class;
                }
            }
        }

        return 'Embed\\Adapters\\'.$name;
    }
private static function getClass ( $ name , array $ config ) { if ( ! empty ( $ config [ 'custom_adapters_namespace' ] ) ) { $ namespaces = ( array ) $ config [ 'custom_adapters_namespace' ] ; foreach ( $ namespaces as $ namespace ) { $ class = $ namespace . $ name ; if ( class_exists ( $ class ) ) { return $ class ; } } } return 'Embed\\Adapters\\' . $ name ; }
Returns a class name using the custom_adapters_namespace

@param string $name
@param array $config

@return  string
Returns a class name using the custom_adapters_namespace