PHP Class MiniAsset\Output\Compiler

Forms the center of MiniAsset
Inheritance: implements MiniAsset\Output\CompilerInterface
Datei anzeigen Open project: markstory/mini-asset

Protected Properties

Property Type Description
$debug boolean Enabling this disables output filters.
$filterRegistry MiniAsset\FilterRegistry The filter registry to use.

Public Methods

Method Description
__construct ( FilterRegistry $filters, $debug ) : void Constructor.
generate ( AssetTarget $build ) : The Generate a compiled asset, with all the configured filters applied.

Method Details

__construct() public method

Constructor.
public __construct ( FilterRegistry $filters, $debug ) : void
$filters MiniAsset\Filter\FilterRegistry The filter registry
return void

generate() public method

Generate a compiled asset, with all the configured filters applied.
public generate ( AssetTarget $build ) : The
$build MiniAsset\AssetTarget
return The processed result of $target and it dependencies.

Property Details

$debug protected_oe property

Enabling this disables output filters.
protected bool $debug
return boolean

$filterRegistry protected_oe property

The filter registry to use.
protected FilterRegistry,MiniAsset $filterRegistry
return MiniAsset\FilterRegistry