Merge pull request #24323 from nextcloud/fix/comments-tab-missing
Fix reverse registration and missing comments tab
This commit is contained in:
commit
c2c539a754
|
@ -264,7 +264,7 @@ class RegistrationContext {
|
||||||
* @param App[] $apps
|
* @param App[] $apps
|
||||||
*/
|
*/
|
||||||
public function delegateCapabilityRegistrations(array $apps): void {
|
public function delegateCapabilityRegistrations(array $apps): void {
|
||||||
while (($registration = array_pop($this->capabilities)) !== null) {
|
while (($registration = array_shift($this->capabilities)) !== null) {
|
||||||
try {
|
try {
|
||||||
$apps[$registration['appId']]
|
$apps[$registration['appId']]
|
||||||
->getContainer()
|
->getContainer()
|
||||||
|
@ -283,7 +283,7 @@ class RegistrationContext {
|
||||||
* @param App[] $apps
|
* @param App[] $apps
|
||||||
*/
|
*/
|
||||||
public function delegateCrashReporterRegistrations(array $apps, Registry $registry): void {
|
public function delegateCrashReporterRegistrations(array $apps, Registry $registry): void {
|
||||||
while (($registration = array_pop($this->crashReporters)) !== null) {
|
while (($registration = array_shift($this->crashReporters)) !== null) {
|
||||||
try {
|
try {
|
||||||
$registry->registerLazy($registration['class']);
|
$registry->registerLazy($registration['class']);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
|
@ -300,7 +300,7 @@ class RegistrationContext {
|
||||||
* @param App[] $apps
|
* @param App[] $apps
|
||||||
*/
|
*/
|
||||||
public function delegateDashboardPanelRegistrations(array $apps, IManager $dashboardManager): void {
|
public function delegateDashboardPanelRegistrations(array $apps, IManager $dashboardManager): void {
|
||||||
while (($panel = array_pop($this->dashboardPanels)) !== null) {
|
while (($panel = array_shift($this->dashboardPanels)) !== null) {
|
||||||
try {
|
try {
|
||||||
$dashboardManager->lazyRegisterWidget($panel['class']);
|
$dashboardManager->lazyRegisterWidget($panel['class']);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
|
@ -314,7 +314,7 @@ class RegistrationContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function delegateEventListenerRegistrations(IEventDispatcher $eventDispatcher): void {
|
public function delegateEventListenerRegistrations(IEventDispatcher $eventDispatcher): void {
|
||||||
while (($registration = array_pop($this->eventListeners)) !== null) {
|
while (($registration = array_shift($this->eventListeners)) !== null) {
|
||||||
try {
|
try {
|
||||||
if (isset($registration['priority'])) {
|
if (isset($registration['priority'])) {
|
||||||
$eventDispatcher->addServiceListener(
|
$eventDispatcher->addServiceListener(
|
||||||
|
@ -342,7 +342,7 @@ class RegistrationContext {
|
||||||
* @param App[] $apps
|
* @param App[] $apps
|
||||||
*/
|
*/
|
||||||
public function delegateContainerRegistrations(array $apps): void {
|
public function delegateContainerRegistrations(array $apps): void {
|
||||||
while (($registration = array_pop($this->services)) !== null) {
|
while (($registration = array_shift($this->services)) !== null) {
|
||||||
try {
|
try {
|
||||||
/**
|
/**
|
||||||
* Register the service and convert the callable into a \Closure if necessary
|
* Register the service and convert the callable into a \Closure if necessary
|
||||||
|
@ -402,7 +402,7 @@ class RegistrationContext {
|
||||||
* @param App[] $apps
|
* @param App[] $apps
|
||||||
*/
|
*/
|
||||||
public function delegateMiddlewareRegistrations(array $apps): void {
|
public function delegateMiddlewareRegistrations(array $apps): void {
|
||||||
while (($middleware = array_pop($this->middlewares)) !== null) {
|
while (($middleware = array_shift($this->middlewares)) !== null) {
|
||||||
try {
|
try {
|
||||||
$apps[$middleware['appId']]
|
$apps[$middleware['appId']]
|
||||||
->getContainer()
|
->getContainer()
|
||||||
|
|
Loading…
Reference in New Issue