MediaWiki master
MediaWiki\ResourceLoader\ReplayMinifierState Class Reference

Fake minifier that buffers additions to later replay to multiple another minifiers. More...

Inherits MinifierState.

Collaboration diagram for MediaWiki\ResourceLoader\ReplayMinifierState:

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 = []
 

Detailed Description

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.

Access: internal

Definition at line 18 of file ReplayMinifierState.php.

Member Function Documentation

◆ addOutput()

MediaWiki\ResourceLoader\ReplayMinifierState::addOutput ( string $output)

Definition at line 53 of file ReplayMinifierState.php.

◆ addSourceFile()

MediaWiki\ResourceLoader\ReplayMinifierState::addSourceFile ( string $url,
string $source,
bool $bundle = false )

Definition at line 40 of file ReplayMinifierState.php.

◆ ensureNewline()

MediaWiki\ResourceLoader\ReplayMinifierState::ensureNewline ( )

Definition at line 58 of file ReplayMinifierState.php.

◆ getMinifiedOutput()

MediaWiki\ResourceLoader\ReplayMinifierState::getMinifiedOutput ( )

Definition at line 63 of file ReplayMinifierState.php.

◆ minify()

MediaWiki\ResourceLoader\ReplayMinifierState::minify ( string $source)
protected

Definition at line 49 of file ReplayMinifierState.php.

◆ outputFile()

MediaWiki\ResourceLoader\ReplayMinifierState::outputFile ( string $file)

Definition at line 31 of file ReplayMinifierState.php.

◆ replayOn()

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.

◆ setErrorHandler()

MediaWiki\ResourceLoader\ReplayMinifierState::setErrorHandler ( $onError)

Definition at line 45 of file ReplayMinifierState.php.

◆ sourceRoot()

MediaWiki\ResourceLoader\ReplayMinifierState::sourceRoot ( string $url)

Definition at line 36 of file ReplayMinifierState.php.

Member Data Documentation

◆ $calls

array MediaWiki\ResourceLoader\ReplayMinifierState::$calls = []
protected

Definition at line 20 of file ReplayMinifierState.php.


The documentation for this class was generated from the following file: