Documentation

StringDefinition
in package
implements Definition, SelfResolvingDefinition

Definition of a string composed of other strings.

Tags
since
5.0
author

Matthieu Napoli matthieu@mnapoli.fr

Table of Contents

Interfaces

Definition
SelfResolvingDefinition
Describes a definition that can resolve itself.

Properties

$expression  : string
$name  : string
Entry name.

Methods

__construct()  : mixed
__toString()  : string
getExpression()  : string
getName()  : string
isResolvable()  : bool
Check if a definition can be resolved.
replaceNestedDefinitions()  : void
resolve()  : string
Resolve the definition and return the resulting value.
resolveExpression()  : string
Resolve a string expression.
setName()  : void

Properties

Methods

__construct()

public __construct(string $expression) : mixed
Parameters
$expression : string

replaceNestedDefinitions()

public replaceNestedDefinitions(callable $replacer) : void
Parameters
$replacer : callable

resolveExpression()

Resolve a string expression.

public static resolveExpression(string $entryName, string $expression, ContainerInterface $container) : string
Parameters
$entryName : string
$expression : string
$container : ContainerInterface
Return values
string

setName()

public setName(string $name) : void
Parameters
$name : string

        
On this page

Search results