Fully Qualified Name: | Zend\Config\Processor\Token |
Implements: | ProcessorInterface |
Name | Description | Defined By |
---|---|---|
__construct() | Token Processor walks through a Config structure and replaces all occurrences of tokens with supplied values. | Token |
addToken() | Add new token. | Token |
enableKeyProcessing() | Enable processing keys as well as values. | Token |
getPrefix() | Token | |
getSuffix() | Token | |
getTokens() | Get current token registry. | Token |
process() | Process | Token |
processValue() | Process a single value | Token |
setPrefix() | Token | |
setSuffix() | Token | |
setToken() | Add new token. | Token |
setTokens() | Set token registry. | Token |
Token Processor walks through a Config structure and replaces all occurrences of tokens with supplied values.
Parameter Name | Type | Description |
---|---|---|
$tokens | array|\Config|\Traversable | Associative |
$prefix | string | |
$suffix | string | |
$enableKeyProcessing | bool | Whether |
Returns:
Add new token.
Parameter Name | Type | Description |
---|---|---|
$token | string | |
$value | mixed |
Returns: self
Enable processing keys as well as values.
Returns: void
Returns: string
Returns: string
Get current token registry.
Returns: array
Process
Parameter Name | Type | Description |
---|---|---|
$config | \Config |
Returns: \Config
Process a single value
Parameter Name | Type | Description |
---|---|---|
$value | ||
$value |
Returns: mixed
Parameter Name | Type | Description |
---|---|---|
$prefix | string |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$suffix | string |
Returns: self
Add new token.
Parameter Name | Type | Description |
---|---|---|
$token | string | |
$value | mixed |
Returns: self
Set token registry.
Parameter Name | Type | Description |
---|---|---|
$tokens | array|\Config|\Traversable | Associative |
Returns: self