diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-24 08:28:19 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-24 08:28:19 +0100 |
commit | decc5c844bd328ceb43f2467272d44f8a5f6a305 (patch) | |
tree | 8c8ec351a5c681577c8740a24c0a1e2ca609ee82 /lib/private/AppFramework | |
parent | eddc31a07bdf8fdf82e320ad264e8e9cfdc574e9 (diff) | |
download | nextcloud-server-decc5c844bd328ceb43f2467272d44f8a5f6a305.tar.gz nextcloud-server-decc5c844bd328ceb43f2467272d44f8a5f6a305.zip |
Fix reverse registration and missing comments tab
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Bootstrap/RegistrationContext.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/AppFramework/Bootstrap/RegistrationContext.php b/lib/private/AppFramework/Bootstrap/RegistrationContext.php index 68e2701de27..12fca23c51f 100644 --- a/lib/private/AppFramework/Bootstrap/RegistrationContext.php +++ b/lib/private/AppFramework/Bootstrap/RegistrationContext.php @@ -264,7 +264,7 @@ class RegistrationContext { * @param App[] $apps */ public function delegateCapabilityRegistrations(array $apps): void { - while (($registration = array_pop($this->capabilities)) !== null) { + while (($registration = array_shift($this->capabilities)) !== null) { try { $apps[$registration['appId']] ->getContainer() @@ -283,7 +283,7 @@ class RegistrationContext { * @param App[] $apps */ public function delegateCrashReporterRegistrations(array $apps, Registry $registry): void { - while (($registration = array_pop($this->crashReporters)) !== null) { + while (($registration = array_shift($this->crashReporters)) !== null) { try { $registry->registerLazy($registration['class']); } catch (Throwable $e) { @@ -300,7 +300,7 @@ class RegistrationContext { * @param App[] $apps */ public function delegateDashboardPanelRegistrations(array $apps, IManager $dashboardManager): void { - while (($panel = array_pop($this->dashboardPanels)) !== null) { + while (($panel = array_shift($this->dashboardPanels)) !== null) { try { $dashboardManager->lazyRegisterWidget($panel['class']); } catch (Throwable $e) { @@ -314,7 +314,7 @@ class RegistrationContext { } public function delegateEventListenerRegistrations(IEventDispatcher $eventDispatcher): void { - while (($registration = array_pop($this->eventListeners)) !== null) { + while (($registration = array_shift($this->eventListeners)) !== null) { try { if (isset($registration['priority'])) { $eventDispatcher->addServiceListener( @@ -342,7 +342,7 @@ class RegistrationContext { * @param App[] $apps */ public function delegateContainerRegistrations(array $apps): void { - while (($registration = array_pop($this->services)) !== null) { + while (($registration = array_shift($this->services)) !== null) { try { /** * Register the service and convert the callable into a \Closure if necessary @@ -402,7 +402,7 @@ class RegistrationContext { * @param App[] $apps */ public function delegateMiddlewareRegistrations(array $apps): void { - while (($middleware = array_pop($this->middlewares)) !== null) { + while (($middleware = array_shift($this->middlewares)) !== null) { try { $apps[$middleware['appId']] ->getContainer() |