1
0
şunun yansıması https://github.com/nextcloud/server.git eşitlendi 2024-07-29 20:15:55 +02:00

When we can not create the class, try if the variable is a registered service

Signed-off-by: Joas Schilling <coding@schilljs.com>
Bu işleme şunda yer alıyor:
Joas Schilling 2016-10-05 16:32:23 +02:00
ebeveyn 92b564a3b9
işleme 8b3deb00b3
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: E166FD8976B3BAC8

Dosyayı Görüntüle

@ -68,6 +68,9 @@ class SimpleContainer extends Container implements IContainer {
// Service not found, use the default value when available
if ($parameter->isDefaultValueAvailable()) {
$parameters[] = $parameter->getDefaultValue();
} else if ($parameterClass !== null) {
$resolveName = $parameter->getName();
$parameters[] = $this->query($resolveName);
} else {
throw $e;
}