LessCompiler

Less.php Compiler Filter Class used to compile LESS stylesheet files into CSS

 class Winter\Storm\Parse\Assetic\Filter\LessCompiler
extends Assetic\Filter\BaseFilter
implements 
    Assetic\Contracts\Filter\HashableInterface,
    Assetic\Contracts\Filter\DependencyExtractorInterface

Extends

Class Description
Assetic\Filter\BaseFilter

Properties

protected $lastHash : mixed

protected $presets : mixed

Methods

public filterLoad (Assetic\Contracts\Asset\AssetInterface $asset)

Parameters
Property Description
$asset
Assetic\Contracts\Asset\AssetInterface
Returns
mixed

public getChildren (Assetic\Factory\AssetFactory $factory, $content, $loadPath = null)

Load children recusive

Parameters
Property Description
$factory
Assetic\Factory\AssetFactory
$content
mixed
$loadPath
mixed
Returns
mixed

public hash () : string

Generates a hash for the object

Returns
string

public hashAsset ($asset, $localPath)

Parameters
Property Description
$asset
mixed
$localPath
mixed
Returns
mixed

public setHash ($hash)

Parameters
Property Description
$hash
mixed
Returns
mixed

public setPresets (array $presets)

Parameters
Property Description
$presets
array
Returns
mixed
Copyright © 2024 Winter CMS