YamlPlaceholderGuard

class \TYPO3\CMS\Core\Configuration\Loader\YamlPlaceholderGuard

A guard for protecting YAML placeholders - keeps existing, but escalates on adding new placeholders

Table of Contents

Properties

$existingConfiguration  : array
$fragmentSplitter  : StringFragmentSplitter

Methods

__construct()  : mixed
process()  : array
Modifies existing configuration.
protectPlaceholders()  : array<string, mixed>
Detects placeholders that have been introduced and handles* them.

Properties

$existingConfiguration

protected array $existingConfiguration

Methods

__construct()

public __construct(array $existingConfiguration) : mixed

Parameters

$existingConfiguration : array

process()

Modifies existing configuration.

public process(array $modified) : array

Parameters

$modified : array

Return values

array

protectPlaceholders()

Detects placeholders that have been introduced and handles* them.

protected protectPlaceholders(array<string, mixed> $current, array<string, mixed> $modified[, array<int, string> $steps = [] ]) : array<string, mixed>

(*) currently throws an exception, but could be purged or escaped as well

Parameters

$current : array<string, mixed>
$modified : array<string, mixed>
$steps : array<int, string> = []

configuration keys traversed so far

Tags

throws
YamlPlaceholderException

Return values

array<string, mixed> —

sanitized configuration (currently not used, exception thrown before)

On this page