Skip to content

Commit fd87c32

Browse files
committed
DIContainer: don't go trough server getter in query
Signed-off-by: Robin Appelman <[email protected]>
1 parent 0db718b commit fd87c32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/AppFramework/DependencyInjection/DIContainer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,14 @@ public function query(string $name, bool $autoload = true) {
463463

464464
$isServerClass = str_starts_with($name, 'OCP\\') || str_starts_with($name, 'OC\\');
465465
if ($isServerClass && !self::has($name)) {
466-
return $this->getServer()->queryNoApps($name, $autoload);
466+
return $this->server->queryNoApps($name, $autoload);
467467
}
468468

469469
try {
470470
return $this->queryNoFallback($name);
471471
} catch (QueryException $firstException) {
472472
try {
473-
return $this->getServer()->query($name, $autoload);
473+
return $this->server->query($name, $autoload);
474474
} catch (QueryException $secondException) {
475475
if ($firstException->getCode() === 1) {
476476
throw $secondException;

0 commit comments

Comments
 (0)