Skip to content

Commit 4f41e49

Browse files
committed
fixup! fixup! fix(Router): correctly add routes to separate collections
1 parent e53552e commit 4f41e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Route/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function loadRoutes(?string $app = null): void {
111111
}
112112

113113
// already loaded so we skip
114-
if ($this->loaded || ($app !== null && in_array($app, $this->loadedApps))) {
114+
if ($this->loaded || ($app !== null && isset($this->loadedApps[$app]))) {
115115
return;
116116
}
117117

@@ -165,9 +165,9 @@ public function loadRoutes(?string $app = null): void {
165165
$this->eventLogger->end('route:load:files');
166166

167167
if (!isset($this->loadedApps['core'])) {
168-
$this->loadedApps['core'] = true;
169168
$this->setupRoutes($this->getAttributeRoutes('core'), 'core');
170169
$this->requireRouteFile(__DIR__ . '/../../../core/routes.php', 'core');
170+
$this->loadedApps['core'] = true;
171171
}
172172

173173
$this->eventLogger->end('route:load:' . $requestedApp);

0 commit comments

Comments
 (0)