Skip to content

Commit 9c09ad2

Browse files
Merge branch '7.4' into 8.0
* 7.4: [FrameworkBundle] Revert auto-import of #[Route] defined on controllers [Form] Fix EnumType choice_label logic for grouped choices
2 parents bad50d7 + f6a1d0d commit 9c09ad2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Kernel/MicroKernelTrait.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,15 @@ 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-
8482
if (is_file($this->getConfigDir().'/routes.yaml')) {
8583
$routes->import($configDir.'/routes.yaml');
8684
} else {
8785
$routes->import($configDir.'/{routes}.php');
8886
}
87+
88+
if ($fileName = (new \ReflectionObject($this))->getFileName()) {
89+
$routes->import($fileName, 'attribute');
90+
}
8991
}
9092

9193
/**

0 commit comments

Comments
 (0)