I have checked this
and it seems to me that defining the routes via annotations is better because you have routes and controllers in one file instead of two files (better for maintainance) etc.
What are pros and cons of using annotations exclusively?
Is it a bad idea?
Or is it OK and I just need to set the basic default controller and 404 page in the routes.php?
Does using annotations slow down the website more than using just routes.php?
Share your thoughts on this subject, please.