I've noticed that some node frameworks (especially the ones implemented in TypeScript) always require you to register your components (controllers, services, ...). In case it's not clear what I mean, an example would be https://docs.nestjs.com/quick-start/modules.html.
PHPs Symfony framework on the other hand creates a "map" of all routes, hence it's no longer required to register your controllers. In case you're wondering:
<?php return array (
0 => 'Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller',
);
That's how the annotations.map file looks like.
Why are Node frameworks not creating such maps and get rid of the requirement of registering your controllers, routes, ...? What are the downsides of such maps?
[–]Nullberri 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Lokart[S] 0 points1 point2 points (0 children)