Open xepozz opened 4 years ago
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.
It doesn't matter for long-running applications
Correct but main usage of the framework won't be long running applications.
Technically that would be
addRoute()
. That could be used in an event handler bound to ApplicationStartup
event.config/routes.php
.Will wait for more requests for the feature.
I think it would be great to have this feature.