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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers created an issue. See original summary.

Wim Leers’s picture

Status: Active » Needs review
FileSize
2.2 KB
gabesullice’s picture

😗👌

Wim Leers’s picture

😀

  • Wim Leers committed 9ebca8f on 8.x-3.x
    Issue #2935895 by Wim Leers, gabesullice: Use a service as a controller...
Wim Leers’s picture

Status: Needs review » Fixed
Wim Leers’s picture

FileSize
698 bytes

Oops.

  • Wim Leers committed e66af93 on 8.x-3.x
    Issue #2935895 by Wim Leers, gabesullice: (follow-up) Forgot to remove...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.