PHP 클래스 AssetCompress\Factory

This class can make AssetCollections and FilterCollections based on the configuration object passed to it.
상속: extends MiniAsset\Factory
파일 보기 프로젝트 열기: markstory/asset_compress 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
buildFilter ( string $name, array $config ) : MiniAsset\Filter\FilterInterface Create a single filter

메소드 상세

buildFilter() 보호된 메소드

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.
리턴 MiniAsset\Filter\FilterInterface

cachedCompiler() 공개 메소드

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.
리턴 MiniAsset\Output\CachedCompiler

cacher() 공개 메소드

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

compiler() 공개 메소드

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

scanner() 공개 메소드

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

writer() 공개 메소드

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