class BundleTransformer

Compiles a number of resource bundles based on predefined compilation rules.

Methods

addRule(TransformationRuleInterface $rule)

Adds a new compilation rule.

compileBundles(CompilationContextInterface $context)

Runs the compilation with the given compilation context.

createStubs(StubbingContextInterface $context)

No description

Details

at line line 35
addRule(TransformationRuleInterface $rule)

Adds a new compilation rule.

Parameters

TransformationRuleInterface $rule The compilation rule.

at line line 49
compileBundles(CompilationContextInterface $context)

Runs the compilation with the given compilation context.

Parameters

CompilationContextInterface $context The context storing information needed to run the compilation.

Exceptions

RuntimeException If any of the files to be compiled by the loaded compilation rules does not exist.

at line line 78
createStubs(StubbingContextInterface $context)

Parameters

StubbingContextInterface $context