private function makeNameSpaceLoaders($loaders, $default_loaders)
    {
        $parsed_loaders = array();

        foreach ($loaders as $loader) {
            if (in_array($loader, $default_loaders)) {
                $loader = sprintf('%s\%sLoader', __NAMESPACE__, ucfirst(strtolower($loader)));
            }

            if (!class_exists($loader)) {
                throw new \InvalidArgumentException(sprintf("'%s' loader class does not exist", $loader));
            }

            $parsed_loaders[] = $loader;
        }

        return $parsed_loaders;
    }
private function makeNameSpaceLoaders($loaders, $default_loaders)
    {
        $parsed_loaders = array();

        foreach ($loaders as $loader) {
            if (in_array($loader, $default_loaders)) {
                $loader = sprintf('%s\%sLoader', __NAMESPACE__, ucfirst(strtolower($loader)));
            }

            if (!class_exists($loader)) {
                throw new \InvalidArgumentException(sprintf("'%s' loader class does not exist", $loader));
            }

            $parsed_loaders[] = $loader;
        }

        return $parsed_loaders;
    }
private function makeNameSpaceLoaders ( $ loaders , $ default_loaders ) { $ parsed_loaders = array ( ) ; foreach ( $ loaders as $ loader ) { if ( in_array ( $ loader , $ default_loaders ) ) { $ loader = sprintf ( '%s\%sLoader' , __NAMESPACE__ , ucfirst ( strtolower ( $ loader ) ) ) ; } if ( ! class_exists ( $ loader ) ) { throw new \ InvalidArgumentException ( sprintf ( "'%s' loader class does not exist" , $ loader ) ) ; } $ parsed_loaders [ ] = $ loader ; } return $ parsed_loaders ; }
Makes namespace loaders from loader strings

@param array $loaders The options being used for Vars
@param array      $default_loaders   The default loaders for Vars

@throws \InvalidArgumentException If a loader from options isn't found

@return array The namespace loaders
Makes namespace loaders from loader strings