Register service aliases und parameters just once
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
d523d9973f
commit
2eb21bdceb
|
@ -38,6 +38,7 @@ use OCP\Dashboard\IManager;
|
||||||
use OCP\EventDispatcher\IEventDispatcher;
|
use OCP\EventDispatcher\IEventDispatcher;
|
||||||
use OCP\ILogger;
|
use OCP\ILogger;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
use function array_shift;
|
||||||
|
|
||||||
class RegistrationContext {
|
class RegistrationContext {
|
||||||
|
|
||||||
|
@ -399,7 +400,7 @@ class RegistrationContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->aliases as $registration) {
|
while (($registration = array_shift($this->aliases)) !== null) {
|
||||||
try {
|
try {
|
||||||
$apps[$registration['appId']]
|
$apps[$registration['appId']]
|
||||||
->getContainer()
|
->getContainer()
|
||||||
|
@ -416,7 +417,7 @@ class RegistrationContext {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->parameters as $registration) {
|
while (($registration = array_shift($this->parameters)) !== null) {
|
||||||
try {
|
try {
|
||||||
$apps[$registration['appId']]
|
$apps[$registration['appId']]
|
||||||
->getContainer()
|
->getContainer()
|
||||||
|
|
Loading…
Reference in New Issue