File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ Symfony provides several route loaders for the most common needs:
65
65
66
66
<!-- loads routes from the PHP attributes of the controllers found in the given PSR-4 namespace root -->
67
67
<import type =" attribute" >
68
- <resource path =" ../src/Controller/" namespace =" App\Controller" />
68
+ <resource path =" ../src/Controller/" namespace =" App\Controller" />
69
69
</import >
70
70
71
71
<!-- 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:
92
92
93
93
// loads routes from the PHP attributes (#[Route(...)])
94
94
// 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
+ );
96
99
97
100
// loads routes from the PHP attributes (#[Route(...)])
98
101
// of the controllers found in that directory
You can’t perform that action at this time.
0 commit comments