We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bad50d7 + f6a1d0d commit 9c09ad2Copy full SHA for 9c09ad2
Kernel/MicroKernelTrait.php
@@ -79,13 +79,15 @@ private function configureRoutes(RoutingConfigurator $routes): void
79
$routes->import($configDir.'/{routes}/'.$this->environment.'/*.{php,yaml}');
80
$routes->import($configDir.'/{routes}/*.{php,yaml}');
81
82
- $routes->import('routing.controllers');
83
-
84
if (is_file($this->getConfigDir().'/routes.yaml')) {
85
$routes->import($configDir.'/routes.yaml');
86
} else {
87
$routes->import($configDir.'/{routes}.php');
88
}
+
+ if ($fileName = (new \ReflectionObject($this))->getFileName()) {
89
+ $routes->import($fileName, 'attribute');
90
+ }
91
92
93
/**
0 commit comments