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
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
boolprocess()
public
process(string $value, array<string|int, mixed>|null $referenceArray) : mixed|string
Parameters
- $value : string
- $referenceArray : array<string|int, mixed>|null