PHP Class DI\Definition\Resolver\ArrayResolver

Since: 5.0
Author: Matthieu Napoli ([email protected])
Inheritance: implements DI\Definition\Resolver\DefinitionResolver
Datei anzeigen Open project: mnapoli/php-di

Public Methods

Method Description
__construct ( DI\Definition\Resolver\DefinitionResolver $definitionResolver )
isResolvable ( DI\Definition\Definition $definition, array $parameters = [] )
resolve ( DI\Definition\Definition $definition, array $parameters = [] ) Resolve an array definition to a value.

Private Methods

Method Description
resolveDefinition ( DI\Definition\Helper\DefinitionHelper $value, ArrayDefinition $definition, $key )

Method Details

__construct() public method

public __construct ( DI\Definition\Resolver\DefinitionResolver $definitionResolver )
$definitionResolver DI\Definition\Resolver\DefinitionResolver Used to resolve nested definitions.

isResolvable() public method

public isResolvable ( DI\Definition\Definition $definition, array $parameters = [] )
$definition DI\Definition\Definition
$parameters array

resolve() public method

An array definition can contain simple values or references to other entries.
public resolve ( DI\Definition\Definition $definition, array $parameters = [] )
$definition DI\Definition\Definition {@inheritdoc}
$parameters array