File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments