Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory Class Reference

This class assembles parser pipelines from parser stages. More...

Public Member Functions

 __construct (Env $env)
 
 parse (string $src)
 
 getPipeline (string $type, array $options=[])
 Get a pipeline of a given type.
 
 returnPipeline (ParserPipeline $pipe)
 Callback called by a pipeline at the end of its processing.
 

Detailed Description

This class assembles parser pipelines from parser stages.

Member Function Documentation

◆ getPipeline()

Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory::getPipeline ( string $type,
array $options = [] )

Get a pipeline of a given type.

Pipelines are cached as they are frequently created.

Parameters
string$type
array$optionsThese also determine the key under which the pipeline is cached for reuse.
Returns
ParserPipeline

◆ returnPipeline()

Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory::returnPipeline ( ParserPipeline $pipe)

Callback called by a pipeline at the end of its processing.

Returns the pipeline to the cache.

Parameters
ParserPipeline$pipe

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