PHP Interface DI\Definition\SelfResolvingDefinition

Author: Matthieu Napoli ([email protected])
Datei anzeigen Open project: mnapoli/php-di

Public Methods

Method Description
isResolvable ( Interop\Container\ContainerInterface $container ) : boolean Check if a definition can be resolved.
resolve ( Interop\Container\ContainerInterface $container ) : mixed Resolve the definition and return the resulting value.

Method Details

isResolvable() public method

Check if a definition can be resolved.
public isResolvable ( Interop\Container\ContainerInterface $container ) : boolean
$container Interop\Container\ContainerInterface
return boolean

resolve() public method

Resolve the definition and return the resulting value.
public resolve ( Interop\Container\ContainerInterface $container ) : mixed
$container Interop\Container\ContainerInterface
return mixed