ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
CallableResolverAwareTrait
libs
composer
vendor
slim
slim
Slim
CallableResolverAwareTrait.php
Generated on Tue Jan 28 2025 19:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)