trait CallableResolverAwareTrait

ResolveCallable

This is an internal class that enables resolution of 'class:method' strings into a closure. This class is an implementation detail and is used only inside of the Slim application.

Properties

ContainerInterface $container

Methods

resolveCallable(callable|string $callable)

Resolve a string of the format 'class:method' into a closure that the router can dispatch.

Details

at line 34
protected Closure resolveCallable(callable|string $callable)

Resolve a string of the format 'class:method' into a closure that the router can dispatch.

Parameters

callable|string $callable

Return Value

Closure

Exceptions

ContainerExceptionInterface
RuntimeException If the string cannot be resolved as a callable