MediaWiki master
|
Fake minifier that buffers additions to later replay to multiple another minifiers. More...
Inherits MinifierState.
Public Member Functions | |
addOutput (string $output) | |
addSourceFile (string $url, string $source, bool $bundle=false) | |
ensureNewline () | |
getMinifiedOutput () | |
outputFile (string $file) | |
replayOn (MinifierState $otherMinifier) | |
Replay all supported method calls from this minifier on another minifier. | |
setErrorHandler ( $onError) | |
sourceRoot (string $url) | |
Protected Member Functions | |
minify (string $source) | |
Protected Attributes | |
array | $calls = [] |
Fake minifier that buffers additions to later replay to multiple another minifiers.
This exists for ResourceLoader::getOneModuleResponse() to pass module content through both IdentityMinifierState and JavaScriptMinifierState/JavaScriptMapperState without building the same module twice.
Definition at line 18 of file ReplayMinifierState.php.
MediaWiki\ResourceLoader\ReplayMinifierState::addOutput | ( | string | $output | ) |
Definition at line 53 of file ReplayMinifierState.php.
MediaWiki\ResourceLoader\ReplayMinifierState::addSourceFile | ( | string | $url, |
string | $source, | ||
bool | $bundle = false ) |
Definition at line 40 of file ReplayMinifierState.php.
MediaWiki\ResourceLoader\ReplayMinifierState::ensureNewline | ( | ) |
Definition at line 58 of file ReplayMinifierState.php.
MediaWiki\ResourceLoader\ReplayMinifierState::getMinifiedOutput | ( | ) |
Definition at line 63 of file ReplayMinifierState.php.
|
protected |
Definition at line 49 of file ReplayMinifierState.php.
MediaWiki\ResourceLoader\ReplayMinifierState::outputFile | ( | string | $file | ) |
Definition at line 31 of file ReplayMinifierState.php.
MediaWiki\ResourceLoader\ReplayMinifierState::replayOn | ( | MinifierState | $otherMinifier | ) |
Replay all supported method calls from this minifier on another minifier.
Definition at line 25 of file ReplayMinifierState.php.
MediaWiki\ResourceLoader\ReplayMinifierState::setErrorHandler | ( | $onError | ) |
Definition at line 45 of file ReplayMinifierState.php.
MediaWiki\ResourceLoader\ReplayMinifierState::sourceRoot | ( | string | $url | ) |
Definition at line 36 of file ReplayMinifierState.php.
|
protected |
Definition at line 20 of file ReplayMinifierState.php.