Skip to content
Snippets Groups Projects
Commit 56557aec authored by Dominique CLAUSE's avatar Dominique CLAUSE
Browse files

Issue #3321998 by NWOM: SimplifyAdminForm::construct() must be an instance of...

Issue #3321998 by NWOM: SimplifyAdminForm::construct() must be an instance of Drupal\Core\Extension\ModuleHandler
parent b5e854cb
No related branches found
No related tags found
1 merge request!5Issue #3321998 by NWOM: SimplifyAdminForm::construct() must be an instance of...
......@@ -5,7 +5,7 @@ namespace Drupal\simplify\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\ConfigFormBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\FormStateInterface;
/**
......@@ -16,7 +16,7 @@ class SimplifyAdminForm extends ConfigFormBase {
/**
* The module handler service.
*
* @var \Drupal\Core\Extension\ModuleHandler
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;
......@@ -25,10 +25,10 @@ class SimplifyAdminForm extends ConfigFormBase {
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
* @param \Drupal\Core\Extension\ModuleHandler $module_handler
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler service.
*/
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandler $module_handler) {
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
parent::__construct($config_factory);
$this->moduleHandler = $module_handler;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment