diff --git a/src/Form/ConfigForm.php b/src/Form/ConfigForm.php index d0a8858..2306ec9 100644 --- a/src/Form/ConfigForm.php +++ b/src/Form/ConfigForm.php @@ -6,7 +6,6 @@ use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Component\Serialization\Exception\InvalidDataTypeException; use Drupal\Component\Serialization\Yaml; -use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -29,13 +28,10 @@ class ConfigForm extends ConfigFormBase { /** * Constructs a ConfigForm object. * - * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory - * The factory for configuration objects. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The handle of module objects. */ - public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) { - $this->setConfigFactory($config_factory); + public function __construct(ModuleHandlerInterface $module_handler) { $this->moduleHandler = $module_handler; } @@ -44,7 +40,6 @@ class ConfigForm extends ConfigFormBase { */ public static function create(ContainerInterface $container) { return new static( - $container->get('config.factory'), $container->get('module_handler') ); }