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+.
Extends
Class | Description |
---|---|
YamlProcessor
|
YAML processor abstract. |
Methods
public preprocess ($text)
Pre-process string content from a YAML string or file.
Parameters
Property | Type | Description |
---|---|---|
$text | mixed |
mixed
|
Returns
mixed
public process ($parsed)
Post-process the parsed content from a YAML string or file.
Parameters
Property | Type | Description |
---|---|---|
$parsed | mixed |
mixed
|
Returns
mixed
inherited public prerender ($data)
Inherited from
YamlProcessor
Parameters
Property | Type | Description |
---|---|---|
$data | mixed |
mixed
|
Returns
mixed
inherited public render ($yaml)
Inherited from
YamlProcessor
Parameters
Property | Type | Description |
---|---|---|
$yaml | mixed |
mixed
|
Returns
mixed
Copyright © 2024 Winter CMS