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.
The files which could be swapped with these Settings have been gutted in D8 and their functionality moved to swappable services. Lets cleanup unneeded Settings.
Old Summary
In _drupal_bootstrap_full(), you can see the following:
require_once DRUPAL_ROOT . '/' . settings()->get('path_inc', 'core/includes/path.inc');
This is a perfect candidate for the DIC. Conditionally switching PHP files is an old methodology, and we can do better.
Comment | File | Size | Author |
---|---|---|---|
#6 | no.incs-1949204-6.patch | 2.38 KB | moshe weitzman |
#3 | no.incs-1949204-2.patch | 2.38 KB | moshe weitzman |
#1 | move_path_inc_to_a_path-1949204-1.patch | 2.39 KB | moshe weitzman |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedThe files which could be swapped with these Settings have been gutted in D8 and their functionality moved to swappable services. Lets cleanup unneeded Settings.
Comment #2
tstoecklerThis doesn't look correct.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedthx. fixed.
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedStray parens
Comment #7
tstoecklerAwesome, no usages left! This has been bugging me everytime I've seen it for a while, thanks for cleaning this up.
Comment #8
alexpottCommitted 0acde17 and pushed to 8.0.x. Thanks!