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.
Yesterday, @gabesullice pointed out that you can use a service as a controller in Drupal 8. (See https://www.drupal.org/docs/8/api/routing-system/structure-of-routes)
Which means there's no need for CdnFarfutureController
to implement ContainerInjectionInterface
. We can just make it a service.
Let's do that. One less bit of brittleness.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2935895-7-cs_followup.patch | 698 bytes | Wim Leers |
#2 | 2935895-2.patch | 2.2 KB | Wim Leers |
Comments
Comment #2
Wim LeersComment #3
gabesullice😗👌
Comment #4
Wim Leers😀
Comment #6
Wim LeersComment #7
Wim LeersOops.