YamlProcessor

Yaml processor contract.

 interface Winter\Storm\Parse\Processor\Contracts\YamlProcessor

Allows for pre-or-post processing of YAML content during parsing or rendering.

Methods

public preprocess (string $text) : string

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

Parameters
Property Description
$text
string
Returns
string

public prerender (mixed $data) : mixed

Pre-process the data that will be rendered to a YAML string or file.

Parameters
Property Description
$data
mixed
Returns
mixed

public process (mixed $parsed) : mixed

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

Parameters
Property Description
$parsed
mixed
Returns
mixed

public render (string $yaml) : string

Post-process a rendered YAML string or file.

Parameters
Property Description
$yaml
string
Returns
string

Implemented by

Class Description
VersionYamlProcessor

"version.yaml" pre-processor class.

Symfony3Processor

Symfony/Yaml 3 processor.

YamlProcessor

YAML processor abstract.

Copyright © 2024 Winter CMS