ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CallableResolverAwareTrait.php
Go to the documentation of this file.
1<?php
9namespace Slim;
10
11use RuntimeException;
14
24trait CallableResolverAwareTrait
25{
36 protected function resolveCallable($callable)
37 {
38 if (!$this->container instanceof ContainerInterface) {
39 return $callable;
40 }
41
43 $resolver = $this->container->get('callableResolver');
44
45 return $resolver->resolve($callable);
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
Describes the interface of a container that exposes methods to read its entries.
resolve($toResolve)
Invoke the resolved callable.
Slim Framework (https://slimframework.com)
Definition: App.php:9