Methods

Add new token.

addToken(string $token, mixed $value) : \Zend\Config\Processor\Token

Parameters

$token

string

$value

mixed

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

getPrefix()

getPrefix() : string

Returns

string

getSuffix()

getSuffix() : string

Returns

string

Get current token registry.

getTokens() : array

Returns

array

Process

process(\Zend\Config\Config $config) : \Zend\Config\Config

Process a single value

processValue($value) : mixed

Parameters

$value

Returns

mixed

setPrefix()

setPrefix(string $prefix) : \Zend\Config\Processor\Token

Parameters

$prefix

string

Returns

setSuffix()

setSuffix(string $suffix) : \Zend\Config\Processor\Token

Parameters

$suffix

string

Returns

Add new token.

setToken(string $token, mixed $value) : \Zend\Config\Processor\Token

Parameters

$token

string

$value

mixed

Returns

Set token registry.

setTokens(array | \Zend\Config\Config | \Traversable $tokens) : \Zend\Config\Processor\Token

Parameters

$tokens

array\Zend\Config\Config\Traversable

Associative array of TOKEN => value to replace it with

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

Build replacement map

buildMap() : array

Returns

array

Applies replacement map to the given value by modifying the value itself

doProcess(mixed $value, array $replacements) : mixed

Parameters

$value

mixed

$replacements

array

Exceptions

\Zend\Config\Exception\InvalidArgumentException if the provided value is a read-only {@see Config}

Returns

mixed

 Properties

 

Replacement map

$map : array

 

Token prefix.

$prefix : string

 

Token suffix.

$suffix : string

 

The registry of tokens

$tokens : array