Register service aliases und parameters just once
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
b89fbaf52d
commit
6a9b693540
|
@ -46,6 +46,7 @@ use OCP\ILogger;
|
||||||
use OCP\Search\IProvider;
|
use OCP\Search\IProvider;
|
||||||
use OCP\Support\CrashReport\IReporter;
|
use OCP\Support\CrashReport\IReporter;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
use function array_shift;
|
||||||
|
|
||||||
class RegistrationContext {
|
class RegistrationContext {
|
||||||
|
|
||||||
|
@ -370,7 +371,7 @@ class RegistrationContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->aliases as $registration) {
|
while (($registration = array_shift($this->aliases)) !== null) {
|
||||||
try {
|
try {
|
||||||
$apps[$registration->getAppId()]
|
$apps[$registration->getAppId()]
|
||||||
->getContainer()
|
->getContainer()
|
||||||
|
@ -387,7 +388,7 @@ class RegistrationContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->parameters as $registration) {
|
while (($registration = array_shift($this->parameters)) !== null) {
|
||||||
try {
|
try {
|
||||||
$apps[$registration->getAppId()]
|
$apps[$registration->getAppId()]
|
||||||
->getContainer()
|
->getContainer()
|
||||||
|
|
Loading…
Reference in New Issue