$resolvedCallableCache
$resolvedCallableCache : array
The cache of string-based callables.
Resolve Callable
This trait enables the resolution of 'class:method' strings into a closure. This class is based on \Slim\CallableResolverAwareTrait.
The resolver will attempt checks on the current class, an optional alternate object, the DI container.
Can resolve the following string formats:
resolveCallable(callable|string $callable, object|null $context = null) : \Closure
Resolve a string of the format 'class:method' into a closure that the router can dispatch.
callable|string | $callable | A callable function or method, either as a reference or string. |
object|null | $context | Optional. An additional context under to test $callable as a method. |
If the string cannot be resolved as a callable or the resolver was not previously set.