Needs review
Project:
Drupal core
Version:
main
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2026 at 23:44 UTC
Updated:
13 Jul 2026 at 01:54 UTC
Jump to comment: Most recent
Split from #3584823: Convert system module routes to use attributes
These were split because they are more complex and harder to test that the first batch.
These were postponed on #3585072: Move controller classes to Controller namespaces but have been moved here:
Also wondering if now that we don't need a routing.yml file it is possible to move some of these out of system module. For example, EntityAutocompleteController could move to the Drupal\Core\Entity\Controller namespace.
CronController and FileDownloadController to the Drupal\system\Controller namespacemoved_classes for easier contrib compatibility.Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mstrelan commented#3584823: Convert system module routes to use attributes is in. We can wait for #3585072: Move controller classes to Controller namespaces or we can possibly move the two affected classes in this issue. Or we can split this again and work on the 4 remaining classes that are in the correct namespace.
Comment #4
mstrelan commentedWill need a CR for the moved classes, the rest can be reviewed.
Comment #5
mstrelan commentedUnfortunately moved_classes doesn't seem to work as advertised.
Comment #6
mstrelan commentedSwapped to stubs instead of
moved_classes, it's much easier for contrib to deal with and support multiple versions.Comment #7
nicxvan commentedWhat exactly doesn't work?
Comment #8
mstrelan commented@nicxvan it still causes phpstan to fail. But now on reflection, that's by design. But handling multiple versions in contrib is still painful due to mismatched phpstan errors, so I don't think it's worth it..