October\Rain\Assetic\Factory\Worker\EnsureFilterWorker

Implements:

  • October\Rain\Assetic\Factory\Worker\WorkerInterface

Applies a filter to an asset based on a source and/or target path match.

Public methods

public void __construct(string $pattern, FilterInterface $filter, integer $flags=NULL)

Constructor.

Parameters
  • string $pattern - A regex for checking the asset's target URL
  • FilterInterface $filter - A filter to apply if the regex matches
  • integer $flags - Flags for what to check

public void process($asset, $factory)
Parameters
  • $asset
  • $factory