1464. Class

1464.1. Zend\Config\Processor\Token

1464.1.1. Methods

1464.1.1.1. __construct

__construct()

Token Processor walks through a Config structure and replaces all occurrences of tokens with supplied values.

Parameters:
  • array|Config|Traversable – Associative array of TOKEN => value to replace it with
  • string
  • string

:internal :

Return type:Token

1464.1.1.2. setPrefix

setPrefix()

@param string $prefix

Return type:Token

1464.1.1.3. getPrefix

getPrefix()

@return string

1464.1.1.4. setSuffix

setSuffix()

@param string $suffix

Return type:Token

1464.1.1.5. getSuffix

getSuffix()

@return string

1464.1.1.6. setTokens

setTokens()

Set token registry.

Parameters:array|Config|Traversable – Associative array of TOKEN => value to replace it with
Return type:Token
Throws :ExceptionInvalidArgumentException

1464.1.1.7. getTokens

getTokens()

Get current token registry.

Return type:array

1464.1.1.8. addToken

addToken()

Add new token.

Parameters:
  • string
  • mixed
Return type:

Token

Throws :

ExceptionInvalidArgumentException

1464.1.1.9. setToken

setToken()

Add new token.

Parameters:
  • string
  • mixed
Return type:

Token

1464.1.1.10. buildMap

buildMap()

Build replacement map

1464.1.1.11. process

process()

Process

Parameters:Config
Return type:Config
Throws :ExceptionInvalidArgumentException

1464.1.1.12. processValue

processValue()

Process a single value

Parameters:$value
Return type:mixed