Commit 8733e125 authored by Nedjo Rogers's avatar Nedjo Rogers Committed by Nedjo Rogers
Browse files

Issue #3303606 by nedjo: Too few arguments to FeaturesConfigInstaller

parent 6fdbf5c9
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -34,7 +34,14 @@ services:
  features.config.installer:
    class: Drupal\features\FeaturesConfigInstaller
    decorates: config.installer
    arguments: ['@features.config.installer.inner', '@features.manager', '@config.factory', '@config.storage', '@config.typed', '@config.manager', '@event_dispatcher', '%install_profile%']
    arguments:
      - '@config.factory'
      - '@config.storage'
      - '@config.typed'
      - '@config.manager'
      - '@event_dispatcher'
      - '%install_profile%'
      - '@extension.path.resolver'
    decoration_priority: 9

  logger.channel.features:
+5 −2
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ namespace Drupal\features;
use Drupal\Core\Config\ConfigInstaller;
use Drupal\Core\Config\ConfigInstallerInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Extension\ExtensionPathResolver;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Config\ConfigManagerInterface;
@@ -51,9 +52,11 @@ class FeaturesConfigInstaller extends ConfigInstaller {
   *   The event dispatcher.
   * @param string $install_profile
   *   The name of the currently active installation profile.
   * @param \Drupal\Core\Extension\ExtensionPathResolver $extension_path_resolver
   *   The extension path resolver.
   */
  public function __construct(ConfigInstallerInterface $config_installer, FeaturesManagerInterface $features_manager, ConfigFactoryInterface $config_factory, StorageInterface $active_storage, TypedConfigManagerInterface $typed_config, ConfigManagerInterface $config_manager, EventDispatcherInterface $event_dispatcher, $install_profile) {
    parent::__construct($config_factory, $active_storage, $typed_config, $config_manager, $event_dispatcher, $install_profile);
  public function __construct(ConfigInstallerInterface $config_installer, FeaturesManagerInterface $features_manager, ConfigFactoryInterface $config_factory, StorageInterface $active_storage, TypedConfigManagerInterface $typed_config, ConfigManagerInterface $config_manager, EventDispatcherInterface $event_dispatcher, $install_profile, ExtensionPathResolver $extension_path_resolver) {
    parent::__construct($config_factory, $active_storage, $typed_config, $config_manager, $event_dispatcher, $install_profile, $extension_path_resolver);
    $this->configInstaller = $config_installer;
    $this->featuresManager = $features_manager;
  }