You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -174,23 +172,6 @@ public function loadRoutes(LoaderInterface $loader): RouteCollection
174
172
$kernelLoader->setCurrentDir(\dirname($file));
175
173
$collection = newRouteCollection();
176
174
177
-
try {
178
-
$configureRoutes = new \ReflectionMethod($this, 'configureRoutes');
179
-
} catch (\ReflectionException$e) {
180
-
thrownew \LogicException(sprintf('"%s" uses "%s", but does not implement the required method "protected function configureRoutes(RoutingConfigurator $routes): void".', get_debug_type($this), MicroKernelTrait::class), 0, $e);
if ($configuratorClass && !is_a(RoutingConfigurator::class, $configuratorClass, true)) {
186
-
trigger_deprecation('symfony/framework-bundle', '5.1', 'Using type "%s" for argument 1 of method "%s:configureRoutes()" is deprecated, use "%s" instead.', RouteCollectionBuilder::class, self::class, RoutingConfigurator::class);
$this->expectExceptionMessage('"Symfony\Bundle\FrameworkBundle\Tests\Kernel\MinimalKernel@anonymous" uses "Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait", but does not implement the required method "protected function configureRoutes(RoutingConfigurator $routes): void".');
0 commit comments