PHP Class Invoker\CallableResolver

Author: Matthieu Napoli ([email protected])
Show file Open project: mnapoli/invoker Class Usage Examples

Public Methods

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

Private Methods

Method 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 method

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

resolve() public method

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