This class assembles parser pipelines from parser stages.
More...
This class assembles parser pipelines from parser stages.
◆ __construct()
Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory::__construct |
( |
Env | $env | ) |
|
◆ 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 | $options | These also determine the key under which the pipeline is cached for reuse. |
- Returns
- ParserPipeline
◆ parse()
Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory::parse |
( |
string | $src | ) |
|
- Parameters
-
- Returns
- Document
◆ 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
-
The documentation for this class was generated from the following file:
- src/Wt2Html/ParserPipelineFactory.php