Skip to content

Commit fc19392

Browse files
committed
Update App.php
1 parent 08620de commit fc19392

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/App.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function onMessage(ConnectionInterface &$connection, mixed $request): voi
9090
static::send($connection, $callback($request, 422), $request);
9191
return;
9292
}
93+
9394
if (static::findFile($connection, $path, $key, $request)) {
9495
return;
9596
}
@@ -345,9 +346,11 @@ protected static function findRoute(TcpConnection $tcpConnection, string $path,
345346
if ($args) {
346347
$route->setParams($args);
347348
}
349+
348350
foreach ($route->getMiddleware() as $className) {
349351
$middlewares[] = [$className, 'process'];
350352
}
353+
351354
if (is_array($callback)) {
352355
$controller = $callback[0];
353356
$plugin = Plugin::app_by_class($controller);
@@ -356,6 +359,7 @@ protected static function findRoute(TcpConnection $tcpConnection, string $path,
356359
} else {
357360
$plugin = Plugin::app_by_path($path);
358361
}
362+
359363
$callback = static::getCallback($plugin, $app, $callback, $args, true, $middlewares);
360364
static::collectCallbacks($key, [$callback, $plugin, $app, $controller ?: '', $action, $route]);
361365
return static::getCallbacks($key, $request);

0 commit comments

Comments
 (0)