VersionYamlProcessor

"version.yaml" pre-processor class.

 class System\Classes\VersionYamlProcessor
extends Winter\Storm\Parse\Processor\YamlProcessor
implements 
    Winter\Storm\Parse\Processor\Contracts\YamlProcessor

Post-v3.x versions of the Symonfy/Yaml package use more recent versions of YAML spec, which breaks common implementations of our version file format. To maintain compatibility, this class will pre-process YAML contents from these files to work with Symfony/Yaml 4.0+.

Methods

public preprocess ($text)

Pre-process string content from a YAML string or file.

Parameters
Property Description
$text
mixed
Returns
mixed

public process ($parsed)

Post-process the parsed content from a YAML string or file.

Parameters
Property Description
$parsed
mixed
Returns
mixed

public prerender ($data)

Inherited from YamlProcessor
Parameters
Property Description
$data
mixed
Returns
mixed

public render ($yaml)

Inherited from YamlProcessor
Parameters
Property Description
$yaml
mixed
Returns
mixed
Copyright © 2024 Winter CMS