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?

CommentFileSizeAuthor
#2 2839452-2.patch978 bytesbircher
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

weseze created an issue. See original summary.

bircher’s picture

Try 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 a StorageInterface.

bircher’s picture

Status: Active » Needs review
bircher’s picture

Status: Needs review » Fixed

This is now taken care of by config_filter.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.