Procházet zdrojové kódy

First query the server container

When the servercontainer wants to obtain something changes are very high
this is something from the server container. Esp on setups with a lot of
shares this can change quite a bit as it avoid a needless check on the
strpos OCA\\ etc.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v21.0.0beta1
Roeland Jago Douma před 3 roky
rodič
revize
889bb44b42
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6
    0
      lib/private/ServerContainer.php

+ 6
- 0
lib/private/ServerContainer.php Zobrazit soubor

@@ -133,6 +133,12 @@ class ServerContainer extends SimpleContainer {
public function query(string $name, bool $autoload = true) {
$name = $this->sanitizeName($name);

try {
return parent::query($name, false);
} catch (QueryException $e) {
// Continue with general autoloading then
}

// In case the service starts with OCA\ we try to find the service in
// the apps container first.
if (($appContainer = $this->getAppContainerForService($name)) !== null) {

Načítá se…
Zrušit
Uložit