Merge pull request #25794 from nextcloud/backport/25786/stable21

[stable21] Register service aliases und parameters just once
This commit is contained in:
Christoph Wurst 2021-02-25 10:52:03 +01:00 committed by GitHub
commit 8ab3a3312c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -38,6 +38,7 @@ use OCP\Dashboard\IManager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\ILogger;
use Throwable;
use function array_shift;
class RegistrationContext {
@ -399,7 +400,7 @@ class RegistrationContext {
}
}
foreach ($this->aliases as $registration) {
while (($registration = array_shift($this->aliases)) !== null) {
try {
$apps[$registration['appId']]
->getContainer()
@ -416,7 +417,7 @@ class RegistrationContext {
}
}
foreach ($this->parameters as $registration) {
while (($registration = array_shift($this->parameters)) !== null) {
try {
$apps[$registration['appId']]
->getContainer()