Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In Drupal 7, you would write a route in a single place, in a single array. In Drupal 8 depending whether it's static or not, you need to define it in two places with wildly disparate syntax (one is a YAML file, the other is an event listener). This is a clear regression.
Proposed resolution
I have no idea.
Comments
Comment #1
catchDuplicate of #2092529: [meta] Improve DX for defining custom routes. I bumped that one to critical task though.