diff --git a/src/Form/RestUIForm.php b/src/Form/RestUIForm.php
index ef42e41..78ad450 100644
--- a/src/Form/RestUIForm.php
+++ b/src/Form/RestUIForm.php
@@ -9,7 +9,7 @@ namespace Drupal\restui\Form;
 
 use Drupal\Core\Form\ConfigFormBase;
 use Drupal\Core\Form\FormStateInterface;
-use Drupal\Core\Config\ConfigFactory;
+use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\Config\Context\ContextInterface;
 use Drupal\Core\Extension\ModuleHandler;
 use Drupal\Core\Url;
@@ -62,7 +62,7 @@ class RestUIForm extends ConfigFormBase {
   /**
    * Constructs a \Drupal\user\RestForm object.
    */
-  public function __construct(ConfigFactory $config_factory, ModuleHandler $module_handler, array $authenticationProviders, array $formats, ResourcePluginManager $resourcePluginManager, RouteBuilder $routeBuilder) {
+  public function __construct(ConfigFactoryInterface $config_factory, ModuleHandler $module_handler, array $authenticationProviders, array $formats, ResourcePluginManager $resourcePluginManager, RouteBuilder $routeBuilder) {
     parent::__construct($config_factory);
     $this->moduleHandler = $module_handler;
     $this->authenticationProviders = $authenticationProviders;
