@@ -65,7 +65,7 @@ Symfony provides several route loaders for the most common needs:
6565
6666<!-- loads routes from the PHP attributes of the controllers found in the given PSR-4 namespace root-->
6767 <import type =" attribute" >
68- <resource path =" ../src/Controller/" namespace =" App\Controller" />
68+ <resource path =" ../src/Controller/" namespace =" App\Controller" />
6969 </import >
7070
7171<!-- loads routes from the PHP attributes of the controllers found in that directory-->
@@ -92,7 +92,10 @@ Symfony provides several route loaders for the most common needs:
9292
9393 // loads routes from the PHP attributes (#[Route(...)])
9494 // of the controllers found in the given PSR-4 namespace root
95- $routes->import('../src/Controller/', 'attribute@App\Controller');
95+ $routes->import(
96+ ['path' => '../src/Controller/', 'namespace' => 'App\Controller'],
97+ 'attribute',
98+ );
9699
97100 // loads routes from the PHP attributes (#[Route(...)])
98101 // of the controllers found in that directory