Class CallableResolver
This class resolves a string of the format 'class:method' into a closure that can be dispatched.
- Slim\CallableResolver implements Slim\Interfaces\CallableResolverInterface
Methods summary
public
|
|
public
callable
|
|
protected
callable
|
#
resolveCallable( string $class, string $method = '__invoke' )
Check if string is something in the DIC that's callable or is a class name which has an __invoke() method. |
protected
|
Constants summary
string |
CALLABLE_PATTERN
|
#
'!^([^\:]+)\:([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)$!'
|