We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 91d601e + fcccce0 commit e1bcb59Copy full SHA for e1bcb59
src/Module.php
@@ -249,8 +249,9 @@ private function registerRoutes(): void
249
if (file_exists($routePath) && empty(($files = glob($routeFilePattern))) === false) {
250
foreach ($files as $file) {
251
$fileName = basename($file);
252
+ $routeType = basename($file, '.php');
253
// Skip files that are not allowed route types
- if (in_array(rtrim($fileName, '.php'), static::ROUTE_FILE_TYPES) === false) {
254
+ if (in_array($routeType, static::ROUTE_FILE_TYPES) === false) {
255
continue;
256
}
257
0 commit comments