private function loadContent($data)
    {
        $loader = $this->getSupportedLoader($data);

        if (!$loader) {
            throw new \InvalidArgumentException(sprintf("'%s' is not supported by the current loaders", $this->file));
        }

        $loader->load();
        return $loader->getContent();
    }
private function loadContent($data)
    {
        $loader = $this->getSupportedLoader($data);

        if (!$loader) {
            throw new \InvalidArgumentException(sprintf("'%s' is not supported by the current loaders", $this->file));
        }

        $loader->load();
        return $loader->getContent();
    }
private function loadContent ( $ data ) { $ loader = $ this -> getSupportedLoader ( $ data ) ; if ( ! $ loader ) { throw new \ InvalidArgumentException ( sprintf ( "'%s' is not supported by the current loaders" , $ this -> file ) ) ; } $ loader -> load ( ) ; return $ loader -> getContent ( ) ; }
Loads raw content from the file

@param string $data The passed file

@throws \InvalidArugmentException If the file passed is not supported by the current loaders

@return mixed The content from the file via the loader
Loads raw content from the file