db
ResolverDispatcher Class Reference

Inherits DefinitionResolver.

Public Member Functions

 __construct (ContainerInterface $container, ProxyFactory $proxyFactory)
 
 resolve (Definition $definition, array $parameters=[])
 
 isResolvable (Definition $definition, array $parameters=[])
 

Detailed Description

Container pro pristup k predkum

upravena trida z

Constructor & Destructor Documentation

◆ __construct()

__construct ( ContainerInterface  $container,
ProxyFactory  $proxyFactory 
)

Member Function Documentation

◆ isResolvable()

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

Check if a definition can be resolved.

Parameters
Definition$definitionObject that defines how the value should be obtained.
array$parametersOptional parameters to use to build the entry.
Returns
bool

◆ resolve()

resolve ( Definition  $definition,
array  $parameters = [] 
)

Resolve a definition to a value.

Parameters
Definition$definitionObject that defines how the value should be obtained.
array$parametersOptional parameters to use to build the entry.
Exceptions
DefinitionExceptionIf the definition cannot be resolved.
Returns
mixed Value obtained from the definition.

The documentation for this class was generated from the following file: