Description
Symfony version(s) affected: 4.4.0+
Description
The documentation about "Building your own Framework with the MicroKernelTrait" has an error in the import-function for loading annotations:
https://symfony.com/doc/4.4/configuration/micro_kernel_trait.html#advanced-example-twig-annotations-and-the-web-debug-toolbar
How to reproduce
use the import-function as stated in the documentation: $routes->import(DIR.'/../src/Controller/', '/', 'annotation');
Possible Solution
use the import-function as given: $routes->import(DIR.'/../src/Controller/', 'annotation');
see https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Routing/Loader/Configurator/RoutingConfigurator.php
The second parameter is $type, so "annotation" should be given here, not "/".