PHP Class AssetCompress\Factory

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

Méthodes publiques

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

Méthodes protégées

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

Method Details

buildFilter() protected méthode

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.
Résultat MiniAsset\Filter\FilterInterface

cachedCompiler() public méthode

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.
Résultat MiniAsset\Output\CachedCompiler

cacher() public méthode

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

compiler() public méthode

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

scanner() public méthode

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

writer() public méthode

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