BundleTransformer

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)

Details

addRule(TransformationRuleInterface $rule)

Adds a new compilation rule.

Parameters

TransformationRuleInterface $rule The compilation rule.

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.

createStubs(StubbingContextInterface $context)

Parameters

StubbingContextInterface $context