|
|
| __construct (?ParameterResolver $parameterResolver=null, ?ContainerInterface $container=null) |
| |
| | call ($callable, array $parameters=[]) |
| | {Call the given function using the given parameters.- Parameters
-
| callable | array | string | $callable | Function to call. |
| array | $parameters | Parameters to use. |
- Return values
-
| mixed | Result of the function. |
- Exceptions
-
}
|
| |
| | getCallableResolver () |
| |
|
| getContainer () |
| |
| | getParameterResolver () |
| |
◆ call()
| Invoker\Invoker::call |
( |
| $callable, |
|
|
array | $parameters = [] ) |
{Call the given function using the given parameters.
- Parameters
-
| callable | array | string | $callable | Function to call. |
| array | $parameters | Parameters to use. |
- Return values
-
| mixed | Result of the function. |
- Exceptions
-
}
Implements Invoker\InvokerInterface.
◆ getCallableResolver()
| Invoker\Invoker::getCallableResolver |
( |
| ) |
|
- Return values
-
| CallableResolver|null | Returns null if no container was given in the constructor. |
◆ getParameterResolver()
| Invoker\Invoker::getParameterResolver |
( |
| ) |
|
- Return values
-
| ParameterResolver | By default it's a ResolverChain |
The documentation for this class was generated from the following file:
- lib/php-di/invoker/src/Invoker.php