PHP Класс AssetCompress\Factory

This class can make AssetCollections and FilterCollections based on the configuration object passed to it.
Наследование: extends MiniAsset\Factory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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