Closed przepompownia closed 3 years ago
For entry
[ 'singletons' => [ CacheInterface::class => FileCache::class ] ]
in container configurations I get
In ServiceMap.php line 87: Function yii\caching\FileCache() does not exist
because this service definition is considered function.
Probably adding
if (\is_string($service) && class_exists($service)) { $this->services[$id] = $service; return; }
at the top of addServiceDefinition() is enough to resolve this problem.
addServiceDefinition()
Thanks for reporting. Do you think you are able to open a PR with the required change?
For entry
in container configurations I get
because this service definition is considered function.
Probably adding
at the top of
addServiceDefinition()
is enough to resolve this problem.