Skip to content

Commit

Permalink
Fix the routing annotation/attribute deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Oct 29, 2023
1 parent 4a27521 commit 59cc8f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestApplication/config/routes.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

use EasyCorp\Bundle\EasyAdminBundle\Tests\TestApplication\Kernel;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;

return function (RoutingConfigurator $routes) {
$routes->import('../src/Controller/', 'attribute');
$routes->import('../src/Controller/', Kernel::MAJOR_VERSION >= 7 ? 'attribute' : 'annotation');
};

0 comments on commit 59cc8f5

Please sign in to comment.