|
15 | 15 | use Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer;
|
16 | 16 | use Symfony\Bundle\FrameworkBundle\Controller\RedirectController;
|
17 | 17 | use Symfony\Bundle\FrameworkBundle\Controller\TemplateController;
|
18 |
| -use Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader; |
| 18 | +use Symfony\Bundle\FrameworkBundle\Routing\AttributeRouteControllerLoader; |
19 | 19 | use Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader;
|
20 | 20 | use Symfony\Bundle\FrameworkBundle\Routing\RedirectableCompiledUrlMatcher;
|
21 | 21 | use Symfony\Bundle\FrameworkBundle\Routing\Router;
|
|
24 | 24 | use Symfony\Component\Routing\Generator\CompiledUrlGenerator;
|
25 | 25 | use Symfony\Component\Routing\Generator\Dumper\CompiledUrlGeneratorDumper;
|
26 | 26 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
27 |
| -use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader; |
28 |
| -use Symfony\Component\Routing\Loader\AnnotationFileLoader; |
| 27 | +use Symfony\Component\Routing\Loader\AttributeDirectoryLoader; |
| 28 | +use Symfony\Component\Routing\Loader\AttributeFileLoader; |
29 | 29 | use Symfony\Component\Routing\Loader\ContainerLoader;
|
30 | 30 | use Symfony\Component\Routing\Loader\DirectoryLoader;
|
31 | 31 | use Symfony\Component\Routing\Loader\GlobFileLoader;
|
|
92 | 92 | ])
|
93 | 93 | ->tag('routing.loader')
|
94 | 94 |
|
95 |
| - ->set('routing.loader.annotation', AnnotatedRouteControllerLoader::class) |
| 95 | + ->set('routing.loader.attribute', AttributeRouteControllerLoader::class) |
96 | 96 | ->args([
|
97 | 97 | '%kernel.environment%',
|
98 | 98 | ])
|
99 | 99 | ->tag('routing.loader', ['priority' => -10])
|
100 | 100 |
|
101 |
| - ->set('routing.loader.annotation.directory', AnnotationDirectoryLoader::class) |
| 101 | + ->alias('routing.loader.annotation', 'routing.loader.attribute') |
| 102 | + ->deprecate('symfony/routing', '6.4', 'The "%alias_id%" service is deprecated, use the "routing.loader.attribute" service instead.') |
| 103 | + |
| 104 | + ->set('routing.loader.attribute.directory', AttributeDirectoryLoader::class) |
102 | 105 | ->args([
|
103 | 106 | service('file_locator'),
|
104 |
| - service('routing.loader.annotation'), |
| 107 | + service('routing.loader.attribute'), |
105 | 108 | ])
|
106 | 109 | ->tag('routing.loader', ['priority' => -10])
|
107 | 110 |
|
108 |
| - ->set('routing.loader.annotation.file', AnnotationFileLoader::class) |
| 111 | + ->alias('routing.loader.annotation.directory', 'routing.loader.attribute.directory') |
| 112 | + ->deprecate('symfony/routing', '6.4', 'The "%alias_id%" service is deprecated, use the "routing.loader.attribute.directory" service instead.') |
| 113 | + |
| 114 | + ->set('routing.loader.attribute.file', AttributeFileLoader::class) |
109 | 115 | ->args([
|
110 | 116 | service('file_locator'),
|
111 |
| - service('routing.loader.annotation'), |
| 117 | + service('routing.loader.attribute'), |
112 | 118 | ])
|
113 | 119 | ->tag('routing.loader', ['priority' => -10])
|
114 | 120 |
|
| 121 | + ->alias('routing.loader.annotation.file', 'routing.loader.attribute.file') |
| 122 | + ->deprecate('symfony/routing', '6.4', 'The "%alias_id%" service is deprecated, use the "routing.loader.attribute.file" service instead.') |
| 123 | + |
115 | 124 | ->set('routing.loader.psr4', Psr4DirectoryLoader::class)
|
116 | 125 | ->args([
|
117 | 126 | service('file_locator'),
|
|
0 commit comments