Browse Source

Register service aliases und parameters just once

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
tags/v22.0.0beta1
Christoph Wurst 3 years ago
parent
commit
6a9b693540
No account linked to committer's email address
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      lib/private/AppFramework/Bootstrap/RegistrationContext.php

+ 3
- 2
lib/private/AppFramework/Bootstrap/RegistrationContext.php View File

@@ -46,6 +46,7 @@ use OCP\ILogger;
use OCP\Search\IProvider;
use OCP\Support\CrashReport\IReporter;
use Throwable;
use function array_shift;

class RegistrationContext {

@@ -370,7 +371,7 @@ class RegistrationContext {
}
}

foreach ($this->aliases as $registration) {
while (($registration = array_shift($this->aliases)) !== null) {
try {
$apps[$registration->getAppId()]
->getContainer()
@@ -387,7 +388,7 @@ class RegistrationContext {
}
}

foreach ($this->parameters as $registration) {
while (($registration = array_shift($this->parameters)) !== null) {
try {
$apps[$registration->getAppId()]
->getContainer()

Loading…
Cancel
Save