diff --git a/src/ComposerManager.php b/src/ComposerManager.php
index 2c822bd..482623d 100644
--- a/src/ComposerManager.php
+++ b/src/ComposerManager.php
@@ -8,7 +8,7 @@
 namespace Drupal\composer_manager;
 
 use Drupal\Component\Utility\String;
-use Drupal\Core\Config\ConfigFactory;
+use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 
 /**
@@ -46,11 +46,11 @@ class ComposerManager implements ComposerManagerInterface {
   /**
    * Constructs a \Drupal\composer_manager\ComposerManager object.
    *
-   * @param \Drupal\Core\Config\ConfigFactory $config_factory
+   * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
    * @param \Drupal\composer_manager\FilesystemInterface $filesystem
    */
-  public function __construct(ConfigFactory $config_factory, ModuleHandlerInterface $module_handler, FilesystemInterface $filesystem) {
+  public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, FilesystemInterface $filesystem) {
     $this->config = $config_factory->get('composer_manager.settings');
     $this->moduleHandler = $module_handler;
     $this->filesystem = $filesystem;
diff --git a/src/Controller/Packages.php b/src/Controller/Packages.php
index 210323c..c24cf25 100644
--- a/src/Controller/Packages.php
+++ b/src/Controller/Packages.php
@@ -10,7 +10,7 @@ namespace Drupal\composer_manager\Controller;
 use Drupal\Component\Utility\String;
 use Drupal\Component\Utility\Xss;
 use Drupal\composer_manager\Form\RebuildForm;
-use Drupal\Core\Config\ConfigFactory;
+use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -40,10 +40,10 @@ class Packages implements ContainerInjectionInterface {
    * Constructs a \Drupal\composer_manager\Controller\Packages object.
    *
    * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
-   * @param \Drupal\Core\Config\ConfigFactory $config_factory
+   * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    * @param \Drupal\composer_manager\ComposerPackagesInterface $packages
    */
-  public function __construct(ModuleHandlerInterface $module_handler, ConfigFactory $config_factory, ComposerPackagesInterface $packages) {
+  public function __construct(ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, ComposerPackagesInterface $packages) {
     $this->moduleHandler = $module_handler;
     $this->configFactory = $config_factory;
     $this->packages = $packages;
diff --git a/src/Form/RebuildForm.php b/src/Form/RebuildForm.php
index 5ff196d..ceecce9 100644
--- a/src/Form/RebuildForm.php
+++ b/src/Form/RebuildForm.php
@@ -7,7 +7,7 @@
 
 namespace Drupal\composer_manager\Form;
 
-use Drupal\Core\Config\ConfigFactory;
+use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
 use Drupal\Core\Form\FormInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -29,9 +29,9 @@ class RebuildForm implements FormInterface, ContainerInjectionInterface {
   /**
    * Constructs a \Drupal\composer_manager\Form\RebuildForm object.
    *
-   * @param \Drupal\Core\Config\ConfigFactory $config_factory
+   * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    */
-  public function __construct(ConfigFactory $config_factory) {
+  public function __construct(ConfigFactoryInterface $config_factory) {
     $this->config = $config_factory->get('composer_manager.settings');
   }
 
diff --git a/src/Form/SettingsForm.php b/src/Form/SettingsForm.php
index f078d18..232cd0a 100644
--- a/src/Form/SettingsForm.php
+++ b/src/Form/SettingsForm.php
@@ -7,7 +7,7 @@
 
 namespace Drupal\composer_manager\Form;
 
-use Drupal\Core\Config\ConfigFactory;
+use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
 use Drupal\Core\Form\FormInterface;
 use Drupal\Core\Form\ConfigFormBase;
@@ -35,11 +35,11 @@ class SettingsForm extends ConfigFormBase implements FormInterface, ContainerInj
   /**
    * Constructs a \Drupal\composer_manager\SettingsForm object.
    *
-   * @param \Drupal\Core\Config\ConfigFactory $config_factory
+   * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
    * @param \Drupal\composer_manager\FilesystemInterface $filesystem
    */
-  public function __construct(ConfigFactory $config_factory, ModuleHandlerInterface $module_handler, FilesystemInterface $filesystem) {
+  public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, FilesystemInterface $filesystem) {
     parent::__construct($config_factory);
     $this->moduleHandler = $module_handler;
     $this->filesystem = $filesystem;
