PHP Class DotsUnited\BundleFu\Filter\CssUrlRewriteFilter

Author: Jan Sorgalla ([email protected])
Inheritance: implements DotsUnited\BundleFu\Filter\FilterInterface
Show file Open project: dotsunited/bundlefu Class Usage Examples

Protected Properties

Property Type Description
$bundleUrl
$file

Public Methods

Method Description
filter ( $content ) {@inheritDoc}
filterFile ( $content, $file, SplFileInfo $fileInfo, $bundleUrl, $bundlePath ) {@inheritDoc}

Protected Methods

Method Description
canonicalize ( string $path ) : string Canonicalizes a path.
rewriteRelative ( string $url, string $sourceUrl, string $bundleUrl ) : string Rewrites to a relative url.
rewriteUrl ( array $matches ) : string Callback which rewrites matched CSS ruls.

Method Details

canonicalize() protected method

Canonicalizes a path.
protected canonicalize ( string $path ) : string
$path string
return string

filter() public method

{@inheritDoc}
public filter ( $content )

filterFile() public method

{@inheritDoc}
public filterFile ( $content, $file, SplFileInfo $fileInfo, $bundleUrl, $bundlePath )
$fileInfo SplFileInfo

rewriteRelative() protected method

Rewrites to a relative url.
protected rewriteRelative ( string $url, string $sourceUrl, string $bundleUrl ) : string
$url string
$sourceUrl string
$bundleUrl string
return string

rewriteUrl() protected method

Callback which rewrites matched CSS ruls.
protected rewriteUrl ( array $matches ) : string
$matches array
return string

Property Details

$bundleUrl protected property

protected $bundleUrl

$file protected property

protected $file