Documentation

CallablesFilter
in package
implements FilterInterface, DependencyExtractorInterface

A filter that wraps callables.

Tags
author

Kris Wallsmith kris.wallsmith@gmail.com

Interfaces, Classes and Traits

FilterInterface
A filter manipulates an asset at load and dump.
DependencyExtractorInterface
A filter that knows how to extract dependencies.

Table of Contents

$dumper  : mixed
$extractor  : mixed
$loader  : mixed
__construct()  : mixed
filterDump()  : mixed
Filters an asset just before it's dumped.
filterLoad()  : mixed
Filters an asset after it has been loaded.
getChildren()  : array<string|int, AssetInterface>
Returns child assets.

Properties

Methods

__construct()

public __construct([callable|null $loader = null ][, callable|null $dumper = null ][, callable|null $extractor = null ]) : mixed
Parameters
$loader : callable|null = null
$dumper : callable|null = null
$extractor : callable|null = null
Return values
mixed

getChildren()

Returns child assets.

public getChildren(AssetFactory $factory, mixed $content[, mixed $loadPath = null ]) : array<string|int, AssetInterface>
Parameters
$factory : AssetFactory

The asset factory

$content : mixed

The asset content

$loadPath : mixed = null

An optional load path

Return values
array<string|int, AssetInterface>

Child assets

Search results