public function rewriteRelativeImports (Asset $asset, string $fileContent) : string
    {
        $importParser = new CssUrlImportParser();
        return $importParser->replaceValidImports(
            $fileContent,
            function (string $path) use ($asset)
            {
                return $this->rewritePathInStaticImport($asset, $path);
            }
        );
    }
public function rewriteRelativeImports (Asset $asset, string $fileContent) : string
    {
        $importParser = new CssUrlImportParser();
        return $importParser->replaceValidImports(
            $fileContent,
            function (string $path) use ($asset)
            {
                return $this->rewritePathInStaticImport($asset, $path);
            }
        );
    }
public function rewriteRelativeImports ( Asset $ asset , string $ fileContent ) : string { $ importParser = new CssUrlImportParser ( ) ; return $ importParser -> replaceValidImports ( $ fileContent , function ( string $ path ) use ( $ asset ) { return $ this -> rewritePathInStaticImport ( $ asset , $ path ) ; } ) ; }
Rewrites all imports to use the names from the cache

@param Asset  $asset
@param string $fileContent
@return string
Rewrites all imports to use the names from the cache