PHP Class DI\Definition\AliasDefinition

Author: Matthieu Napoli ([email protected])
Inheritance: implements CacheableDefinition, implements DI\Definition\SelfResolvingDefinition
显示文件 Open project: mnapoli/php-di

Public Methods

Method Description
__construct ( string $name, string $targetEntryName )
__toString ( )
getName ( ) : string
getScope ( )
getTargetEntryName ( ) : string
isResolvable ( Interop\Container\ContainerInterface $container )
resolve ( Interop\Container\ContainerInterface $container )

Method Details

__construct() public method

public __construct ( string $name, string $targetEntryName )
$name string Entry name
$targetEntryName string Name of the target entry

__toString() public method

public __toString ( )

getName() public method

public getName ( ) : string
return string Entry name

getScope() public method

public getScope ( )

getTargetEntryName() public method

public getTargetEntryName ( ) : string
return string

isResolvable() public method

public isResolvable ( Interop\Container\ContainerInterface $container )
$container Interop\Container\ContainerInterface

resolve() public method

public resolve ( Interop\Container\ContainerInterface $container )
$container Interop\Container\ContainerInterface