'path' => 'Psr4Controllers', 'namespace' => 'Symfony\Component\Routing\Tests\Fixtures\Psr4Controllers'
],
'attribute'
);
} private function getLoader(): DelegatingLoader
{ $locator =
new FileLocator(\
dirname(__DIR__
).'/Fixtures'
);
return new DelegatingLoader( new LoaderResolver([ new Psr4DirectoryLoader($locator),
new class() extends AnnotationClassLoader
{ protected function configureRoute(Route
$route, \ReflectionClass
$class, \ReflectionMethod
$method, object
$annot): void
{ $route->
setDefault('_controller',
$class->
getName().'::'.
$method->
getName());
} },
]) );
}}