17 use CallableResolverAwareTrait;
30 $this->callable = $callable;
36 $callable = $this->resolveCallable($this->callable);
37 if ($callable instanceof Closure) {
38 $callable = $callable->bindTo($this->container);
41 $args = func_get_args();
43 return call_user_func_array($callable, $args);
An exception for terminatinating execution or to throw for unit testing.
__construct($callable, ContainerInterface $container=null)
DeferredMiddleware constructor.
Describes the interface of a container that exposes methods to read its entries.
Describes the interface of a container that exposes methods to read its entries.
Slim Framework (https://slimframework.com)