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
The ExceptionController
class has a static method that creates the exception listener. As noted in the phpdoc, this code does not belong to this file and anyway, this can be done in the DIC quite easily.
Proposed resolution
The patch removes this factory and moves the configuration directly into the DIC, where it belongs.
Comment | File | Size | Author |
---|---|---|---|
#1 | exception-listener-factory.patch | 2.49 KB | fabpot |
exception-listener-factory.patch | 3.24 KB | fabpot | |
Comments
Comment #1
fabpot CreditAttribution: fabpot commentedRe-uploaded the right patch.
Comment #2
dawehnerIt is amazing to see the flexibility of the DIC.
Comment #3
webchickCommitted and pushed to 8.x. Thanks!