PHP Interface DotsUnited\BundleFu\Filter\FilterInterface

Author: Jan Sorgalla ([email protected])
Show file Open project: dotsunited/bundlefu

Public Methods

Method Description
filter ( mixed $content ) : mixed Filter applied to concenated content before its written to the cache file.
filterFile ( mixed $content, string $file, SplFileInfo $fileInfo, string $bundleUrl, string $bundlePath ) : mixed Filter applied to a single file after it has beed loaded.

Method Details

filter() public method

Filter applied to concenated content before its written to the cache file.
public filter ( mixed $content ) : mixed
$content mixed
return mixed

filterFile() public method

Filter applied to a single file after it has beed loaded.
public filterFile ( mixed $content, string $file, SplFileInfo $fileInfo, string $bundleUrl, string $bundlePath ) : mixed
$content mixed
$file string File as it appears in the href/src attribute
$fileInfo SplFileInfo
$bundleUrl string The url of the bundle this file will be added to
$bundlePath string The path of the bundle this file will be added to
return mixed