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.
When using Swiftmailer on a website with configuration in GIT, it is convenient to make configuration overrides on development servers using the configuration override API.
However, src/Plugin/Mail/SwiftMailer.php loads configuration in a way that blocks configuration overrides.
Can we change this to default behaviour? See patch.
Comment | File | Size | Author |
---|---|---|---|
#2 | swiftmailer-configuration-2703833-1-8.x-1.x.patch | 864 bytes | bjaxelsen |
Comments
Comment #2
bjaxelsen CreditAttribution: bjaxelsen commentedComment #3
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedI think the config object does not implement ArrayAccess, you have to change the other code as well.
Comment #4
bjaxelsen CreditAttribution: bjaxelsen commented@webflo where do we need ArrayAccess? As far as I know the only difference between Config::getRawData and Config::get is that the latter allows overrides. Does this cause some restrictions on the configuration object? I have the proposed patch running on a production site right now without problems.
Comment #5
webflo CreditAttribution: webflo at UEBERBIT GmbH commented@bjaxelsen: Sorry, you are right. I thought
get
returns an config object, buts its an array.Comment #7
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedCommitted to 8.x-1.x