summaryrefslogtreecommitdiffstats
path: root/lib/private/ServerContainer.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-07-28 09:38:43 +0200
committerJoas Schilling <coding@schilljs.com>2020-07-28 09:38:43 +0200
commitbab4fb98ebd839441a0bb4cdc9413d9f1e47d355 (patch)
tree044db04763ed3f6d4ee982e62fec4f525327df58 /lib/private/ServerContainer.php
parent4cac0f6895cf4bda4dda0b7cb3b843546eb0a952 (diff)
downloadnextcloud-server-bab4fb98ebd839441a0bb4cdc9413d9f1e47d355.tar.gz
nextcloud-server-bab4fb98ebd839441a0bb4cdc9413d9f1e47d355.zip
Fix overwriteService() for apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/ServerContainer.php')
-rw-r--r--lib/private/ServerContainer.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php
index b1bf38265b8..72275ac1205 100644
--- a/lib/private/ServerContainer.php
+++ b/lib/private/ServerContainer.php
@@ -156,7 +156,12 @@ class ServerContainer extends SimpleContainer {
return parent::query($name, $autoload);
}
- private function getAppContainerForService(string $id): ?DIContainer {
+ /**
+ * @internal
+ * @param string $id
+ * @return DIContainer|null
+ */
+ public function getAppContainerForService(string $id): ?DIContainer {
if (strpos($id, 'OCA\\') !== 0 || substr_count($id, '\\') < 2) {
return null;
}