mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #25786 from nextcloud/fix/register-aliases-params-once
Register service aliases und parameters just once
This commit is contained in:
commit
ce082dd49b
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Reference in a new issue