CallableResolver
class CallableResolver implements CallableResolverInterface
This class resolves a string of the format 'class:method' into a closure that can be dispatched.
Constants
CALLABLE_PATTERN |
|
Methods
__construct(ContainerInterface $container)
No description
callable
resolve(mixed $toResolve)
Resolve toResolve into a closure that that the router can dispatch.
Details
at line 29
__construct(ContainerInterface $container)
at line 47
callable
resolve(mixed $toResolve)
Resolve toResolve into a closure that that the router can dispatch.
If toResolve is of the format 'class:method', then try to extract 'class' from the container otherwise instantiate it and then dispatch 'method'.