PHP Class DotsUnited\BundleFu\Filter\CssUrlRewriteFilter

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

Protected Properties

Свойство Type Description
$bundleUrl
$file

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

Canonicalizes a path.
protected canonicalize ( string $path ) : string
$path string
Résultat string

filter() public méthode

{@inheritDoc}
public filter ( $content )

filterFile() public méthode

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

rewriteRelative() protected méthode

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

rewriteUrl() protected méthode

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

Property Details

$bundleUrl protected_oe property

protected $bundleUrl

$file protected_oe property

protected $file