You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
Collecting annotations runtime is performance killer.
It doesn't matter for long-running applications
We don't want to introduce container compiler pass since it complicates development and container itself significantly.
I think this will be a necessary measure, otherwise you will have to give up a lot of amenities.
I suggest to find out the opinion of the developers (for example, by voting on the forum).
There won't be a single place to define your routes.
Too much developers likes annotations (hello PHP 8 attributes). Annotations/attributes is preferable way to configure routes.
General purpose annotation collector that, given a list of directories will scan for annotations.
For runtime it can be router-specific annotation collector that calls addRoute(). That could be used in an event handler bound to ApplicationStartup event.
For production it can be a console command that will collect routes and dump them into config/routes.php.
I think it would be great to have this feature.
The text was updated successfully, but these errors were encountered: