EnvVariableProcessor implements PlaceholderProcessorInterface

Return value from environment variable

Environment variables may only contain word characters and underscores (a-zA-Z0-9_) to be compatible to shell environments.

Table of Contents

Interfaces

PlaceholderProcessorInterface

Methods

canProcess()  : bool
process()  : mixed|string

Methods

canProcess()

public canProcess(string $placeholder, array<string|int, mixed> $referenceArray) : bool
Parameters
$placeholder : string
$referenceArray : array<string|int, mixed>
Return values
bool

process()

public process(string $value, array<string|int, mixed>|null $referenceArray) : mixed|string
Parameters
$value : string
$referenceArray : array<string|int, mixed>|null
Return values
mixed|string

        
On this page

Search results