PHP Class DI\Definition\Resolver\ResolverDispatcher
Dynamic dispatch pattern.
ファイルを表示
Open project: mnapoli/php-di
Public Methods
Method |
Description |
|
__construct ( Interop\Container\ContainerInterface $container, ProxyFactory $proxyFactory ) |
|
|
isResolvable ( DI\Definition\Definition $definition, array $parameters = [] ) : boolean |
Check if a definition can be resolved. |
|
resolve ( DI\Definition\Definition $definition, array $parameters = [] ) : mixed |
Resolve a definition to a value. |
|
Private Methods
Method |
Description |
|
getDefinitionResolver ( DI\Definition\Definition $definition ) : DI\Definition\Resolver\DefinitionResolver |
Returns a resolver capable of handling the given definition. |
|
Method Details
__construct()
public method
public __construct ( Interop\Container\ContainerInterface $container, ProxyFactory $proxyFactory ) |
$container |
Interop\Container\ContainerInterface |
|
$proxyFactory |
DI\Proxy\ProxyFactory |
|
isResolvable()
public method
Check if a definition can be resolved.
public isResolvable ( DI\Definition\Definition $definition, array $parameters = [] ) : boolean |
$definition |
DI\Definition\Definition |
Object that defines how the value should be obtained. |
$parameters |
array |
Optional parameters to use to build the entry. |
return |
boolean |
|
Resolve a definition to a value.
public resolve ( DI\Definition\Definition $definition, array $parameters = [] ) : mixed |
$definition |
DI\Definition\Definition |
Object that defines how the value should be obtained. |
$parameters |
array |
Optional parameters to use to build the entry. |
return |
mixed |
Value obtained from the definition. |