PHP 클래스 DI\Definition\Resolver\FactoryResolver

부터: 4.0
저자: Matthieu Napoli ([email protected])
상속: implements DI\Definition\Resolver\DefinitionResolver
파일 보기 프로젝트 열기: mnapoli/php-di

공개 메소드들

메소드 설명
__construct ( Interop\Container\ContainerInterface $container, DI\Definition\Resolver\DefinitionResolver $resolver ) The resolver needs a container. This container will be passed to the factory as a parameter so that the factory can access other entries of the container.
isResolvable ( DI\Definition\Definition $definition, array $parameters = [] )
resolve ( DI\Definition\Definition $definition, array $parameters = [] ) Resolve a factory definition to a value.

비공개 메소드들

메소드 설명
resolveExtraParams ( array $params )

메소드 상세

__construct() 공개 메소드

The resolver needs a container. This container will be passed to the factory as a parameter so that the factory can access other entries of the container.
public __construct ( Interop\Container\ContainerInterface $container, DI\Definition\Resolver\DefinitionResolver $resolver )
$container Interop\Container\ContainerInterface
$resolver DI\Definition\Resolver\DefinitionResolver

isResolvable() 공개 메소드

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

resolve() 공개 메소드

This will call the callable of the definition.
public resolve ( DI\Definition\Definition $definition, array $parameters = [] )
$definition DI\Definition\Definition {@inheritdoc}
$parameters array