We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18397ef commit dcad1b3Copy full SHA for dcad1b3
routing/custom_route_loader.rst
@@ -92,7 +92,10 @@ Symfony provides several route loaders for the most common needs:
92
93
// loads routes from the PHP attributes (#[Route(...)])
94
// of the controllers found in the given PSR-4 namespace root
95
- $routes->import('../src/Controller/', 'attribute@App\Controller');
+ $routes->import(
96
+ ['path' => '../src/Controller/', 'namespace' => 'App\Controller'],
97
+ 'attribute',
98
+ );
99
100
101
// of the controllers found in that directory
0 commit comments