PHP Class Invoker\CallableResolver

Author: Matthieu Napoli ([email protected])
Afficher le fichier Open project: mnapoli/invoker Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Interop\Container\ContainerInterface $container )
resolve ( callable | string | array $callable ) : callable Resolve the given callable into a real PHP callable.

Private Methods

Méthode Description
isStaticCallToNonStaticMethod ( mixed $callable ) : boolean Check if the callable represents a static call to a non-static method.
resolveFromContainer ( callable | string | array $callable ) : callable

Method Details

__construct() public méthode

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

resolve() public méthode

Resolve the given callable into a real PHP callable.
public resolve ( callable | string | array $callable ) : callable
$callable callable | string | array
Résultat callable Real PHP callable.