protected function fixRelativePaths($content, $originalFile)
    {
        $cssParserSettings = CssSettings::create()->withMultibyteSupport(false);
        $cssParser = new CssParser($content, $cssParserSettings);
        $cssDocument = $cssParser->parse();

        $cssBlocks = $cssDocument->getAllValues();

        $this->fixUrls($cssBlocks, $originalFile);

        return $cssDocument->render();
    }
protected function fixRelativePaths($content, $originalFile)
    {
        $cssParserSettings = CssSettings::create()->withMultibyteSupport(false);
        $cssParser = new CssParser($content, $cssParserSettings);
        $cssDocument = $cssParser->parse();

        $cssBlocks = $cssDocument->getAllValues();

        $this->fixUrls($cssBlocks, $originalFile);

        return $cssDocument->render();
    }
protected function fixRelativePaths ( $ content , $ originalFile ) { $ cssParserSettings = CssSettings :: create ( ) -> withMultibyteSupport ( false ) ; $ cssParser = new CssParser ( $ content , $ cssParserSettings ) ; $ cssDocument = $ cssParser -> parse ( ) ; $ cssBlocks = $ cssDocument -> getAllValues ( ) ; $ this -> fixUrls ( $ cssBlocks , $ originalFile ) ; return $ cssDocument -> render ( ) ; }
Use CssParser to go through and convert all relative paths to absolute

@param string $content
@param string $originalFile

@return string
Use CssParser to go through and convert all relative paths to absolute