PHP 클래스 MiniAsset\Factory

This class can make AssetCollections and FilterCollections based on the configuration object passed to it.
파일 보기 프로젝트 열기: markstory/mini-asset 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config AssetConfig The config instance to make objects based on.

공개 메소드들

메소드 설명
__construct ( AssetConfig $config ) Constructor
assetCollection ( ) : AssetCollection Create an AssetCollection with all the configured assets.
cachedCompiler ( string $outputDir = '', boolean $debug = false ) : CachedCompiler Create a Caching Compiler
cacher ( string $path = '' ) : MiniAsset\AssetCacher Create an AssetCacher
compiler ( boolean $debug = false ) : Compiler Create an Compiler
filterRegistry ( ) : FilterRegistry Create a filter registry containing all the configured filters.
scanner ( array $paths ) : AssetScanner Create a new scanner instance for the provided paths.
target ( string $name ) : AssetTarget Create a single build target
writer ( string $tmpPath = '' ) : MiniAsset\AssetWriter Create an AssetWriter

보호된 메소드들

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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( AssetConfig $config )
$config AssetConfig

assetCollection() 공개 메소드

Create an AssetCollection with all the configured assets.
public assetCollection ( ) : AssetCollection
리턴 AssetCollection

buildFilter() 보호된 메소드

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

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 = '' ) : MiniAsset\AssetCacher
$path string The path to cache assets into.
리턴 MiniAsset\AssetCacher

compiler() 공개 메소드

Create an Compiler
public compiler ( boolean $debug = false ) : Compiler
$debug boolean Whether or not to enable debugging mode for the compiler.
리턴 MiniAsset\Output\Compiler

filterRegistry() 공개 메소드

Create a filter registry containing all the configured filters.
public filterRegistry ( ) : FilterRegistry
리턴 MiniAsset\Filter\FilterRegistry

scanner() 공개 메소드

Create a new scanner instance for the provided paths.
public scanner ( array $paths ) : AssetScanner
$paths array The paths to scan.
리턴 AssetScanner

target() 공개 메소드

Create a single build target
public target ( string $name ) : AssetTarget
$name string The name of the target to build
리턴 AssetTarget

writer() 공개 메소드

Create an AssetWriter
public writer ( string $tmpPath = '' ) : MiniAsset\AssetWriter
$tmpPath string The path where the build timestamp lookup should be stored.
리턴 MiniAsset\AssetWriter

프로퍼티 상세

$config 보호되어 있는 프로퍼티

The config instance to make objects based on.
protected AssetConfig,MiniAsset $config
리턴 AssetConfig