File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,13 @@ private function configureRoutes(RoutingConfigurator $routes): void
7979 $ routes ->import ($ configDir .'/{routes}/ ' .$ this ->environment .'/*.{php,yaml} ' );
8080 $ routes ->import ($ configDir .'/{routes}/*.{php,yaml} ' );
8181
82+ $ routes ->import ('routing.controllers ' );
83+
8284 if (is_file ($ this ->getConfigDir ().'/routes.yaml ' )) {
8385 $ routes ->import ($ configDir .'/routes.yaml ' );
8486 } else {
8587 $ routes ->import ($ configDir .'/{routes}.php ' );
8688 }
87-
88- if ($ fileName = (new \ReflectionObject ($ this ))->getFileName ()) {
89- $ routes ->import ($ fileName , 'attribute ' );
90- }
9189 }
9290
9391 /**
Original file line number Diff line number Diff line change @@ -184,8 +184,7 @@ public static function config(array $config): array
184184 *
185185 * return Routes::config([
186186 * 'controllers' => [
187- * 'resource' => 'attributes',
188- * 'type' => 'tagged_services',
187+ * 'resource' => 'routing.controllers',
189188 * ],
190189 * ]);
191190 * ```
You can’t perform that action at this time.
0 commit comments