PHP Class AssetCompress\Factory

This class can make AssetCollections and FilterCollections based on the configuration object passed to it.
Inheritance: extends MiniAsset\Factory
Mostra file Open project: markstory/asset_compress Class Usage Examples

Public Methods

Method Description
cachedCompiler ( string $outputDir = '', boolean $debug = false ) : CachedCompiler Create a Caching Compiler
cacher ( string $path = '' ) : AssetCacher Create an AssetCacher
compiler ( boolean $debug = false ) : MiniAsset\AssetCompiler Create an AssetCompiler
scanner ( array $paths ) : AssetScanner Create an AssetScanner
writer ( string $path = TMP ) : AssetWriter Create an AssetWriter

Protected Methods

Method Description
buildFilter ( string $name, array $config ) : MiniAsset\Filter\FilterInterface Create a single filter

Method Details

buildFilter() protected method

Create a single filter
protected buildFilter ( string $name, array $config ) : MiniAsset\Filter\FilterInterface
$name string The name of the filter to build.
$config array The configuration for the filter.
return MiniAsset\Filter\FilterInterface

cachedCompiler() public method

Create a Caching Compiler
public cachedCompiler ( string $outputDir = '', boolean $debug = false ) : CachedCompiler
$outputDir string The directory to output cached files to.
$debug boolean Whether or not to enable debugging mode for the compiler.
return MiniAsset\Output\CachedCompiler

cacher() public method

Create an AssetCacher
public cacher ( string $path = '' ) : AssetCacher
$path string The path to read from. Defaults to the application CACHE path.
return MiniAsset\Output\AssetCacher

compiler() public method

Create an AssetCompiler
public compiler ( boolean $debug = false ) : MiniAsset\AssetCompiler
$debug boolean Not used - Configure is used instead.
return MiniAsset\AssetCompiler

scanner() public method

Create an AssetScanner
public scanner ( array $paths ) : AssetScanner
$paths array The paths to read from.
return AssetScanner

writer() public method

Create an AssetWriter
public writer ( string $path = TMP ) : AssetWriter
$path string The path to use
return MiniAsset\Output\AssetWriter