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.
See title, patch coming in a minute.
You need to use Settings::get() now.
Comment | File | Size | Author |
---|---|---|---|
#3 | drupalextesions-d8-updates-2229747-3.patch | 1.73 KB | dstol |
#1 | drupalextension-settings-2229747-1.patch | 802 bytes | Berdir |
Comments
Comment #1
BerdirComment #2
dstolComment #3
dstolCouple other updates necessary to keep up to date with D8, was having issues with the patch in #1.
Comment #4
dstolComment #5
BerdirHow are you adding drupalextension?
I'm doing it with composer_manager, which now somehow integrates it's own autoload.php and the one from core, so that the code can be loaded. That also avoids duplicating libraries that are already in core. behat is running just fine with my patch for me.
Comment #7
jhedstromI've committed #1 in 9c3db44. I'd like more info before I change how the autoload works and the version is detected, since Composer's autoload.php should work.
Let's follow up in another issue.
Comment #8
dstolI started to create a follow up below, but it was my own mistake. Either way, thanks for commiting #1.
----
In creating a brief poc for [#8648731] I ran into some issues resulting in patch, #3, in #2229747: [d8] settings() has been removed and VERSION constant removed
My setup was D8 at 3d856f30. I took the following steps:
First exception: [Drupal\Exception\BootstrapException] Unable to determine Drupal core version. Supported versions are 6, 7, and 8.Realizing now I was specifying *, which grabs 0.1.5 in composer.json vs dev-master, this appears to be fixed.Second fatal: PHP Fatal error: Call to undefined function Drupal\Driver\Cores\settings(), which I resolved by updating to the new syntax and namespacing it out fully.dev-master is behind at f3263f4, which fetching HEAD updates the autoloader properly and resolves this.Comment #9
grasmash CreditAttribution: grasmash commentedThis file references 'core/includes/session.inc', which doesn't seem to existing anymore. Hm.