private function getSupportedLoader($data)
    {
        $loaders = $this->vars->loader->getLoaders();

        foreach ($loaders as $loader) {
            $class_loader = new \ReflectionClass($loader);
            $class_loader = $class_loader->newInstanceArgs(array($data));

            if ($class_loader->supports()) {
                return $class_loader;
            }
        }
        return false;
    }
private function getSupportedLoader($data)
    {
        $loaders = $this->vars->loader->getLoaders();

        foreach ($loaders as $loader) {
            $class_loader = new \ReflectionClass($loader);
            $class_loader = $class_loader->newInstanceArgs(array($data));

            if ($class_loader->supports()) {
                return $class_loader;
            }
        }
        return false;
    }
private function getSupportedLoader ( $ data ) { $ loaders = $ this -> vars -> loader -> getLoaders ( ) ; foreach ( $ loaders as $ loader ) { $ class_loader = new \ ReflectionClass ( $ loader ) ; $ class_loader = $ class_loader -> newInstanceArgs ( array ( $ data ) ) ; if ( $ class_loader -> supports ( ) ) { return $ class_loader ; } } return false ; }
Gets the supported loader for the passed file

@see \M1\Vars\Vars::getLoaders() \M1\Vars\Vars::getLoaders()

@param string $data The passed file

@return mixed Returns the loader class or false if no loader calls was found
Gets the supported loader for the passed file