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.
I've added the service as documented in the readme in my services.yml file
services:
config.storage.sync:
class: Drupal\config_split\Config\StorageWrapper
factory: config_split.manager:getDefaultStorageWrapper
This works perfectly on a working site.
I then tried to install my site from scratch (we use an install profile via drush site-install) and it failed because the service is not known (yet).
How can I fix this? Am I doing something wrong? Should it be working?
Comment | File | Size | Author |
---|---|---|---|
#2 | 2839452-2.patch | 978 bytes | bircher |
|
Comments
Comment #2
bircherTry the attached patch.
It replaces the service only when the module is available. When you install the site the class is not available to Drupal and when you switch out the definition of the service in services.yml it will be broken until config_split is enabled.
I will commit it once I tested that console works with it. Console had an issue that expected it to be a
FileStorage
instead of aStorageInterface
.Comment #3
bircherComment #4
bircherThis is now taken care of by config_filter.