ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
CallableResolverAwareTrait.php
Go to the documentation of this file.
1
<?
php
9
namespace
Slim
;
10
11
use
RuntimeException
;
12
use
Psr\Container\ContainerInterface
;
13
use
Slim\Interfaces\CallableResolverInterface
;
14
24
trait
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
}
ContainerInterface
RuntimeException
Slim
Slim Framework (https://slimframework.com)
Definition:
App.php:9
CallableResolverInterface
php
CallableResolverAwareTrait
libs
composer
vendor
slim
slim
Slim
CallableResolverAwareTrait.php
Generated on Thu Jan 16 2025 19:01:56 for ILIAS by
1.8.13 (using
Doxyfile
)