Skip to content
Snippets Groups Projects
Commit 6eb43679 authored by Adam Bramley's avatar Adam Bramley Committed by bartvig
Browse files

Issue #3374902: SettingsForm should type hint interfaces

parent f4548351
No related branches found
No related tags found
1 merge request!16Issue #3374902: SettingsForm should type hint interfaces
......@@ -2,19 +2,19 @@
namespace Drupal\siteimprove\Form;
use Drupal\Component\Serialization\Json;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Messenger\Messenger;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Component\Serialization\Json;
use Drupal\siteimprove\Plugin\SiteimproveDomainManager;
use Drupal\siteimprove\SiteimproveUtils;
use Symfony\Component\DependencyInjection\ContainerInterface;
use GuzzleHttp\Client;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Siteimprove settings.
......@@ -40,7 +40,7 @@ class SettingsForm extends ConfigFormBase {
/**
* Drupal Core Messenger service.
*
* @var \Drupal\Core\Messenger\Messenger
* @var \Drupal\Core\Messenger\MessengerInterface
*/
protected $messenger;
......@@ -61,7 +61,7 @@ class SettingsForm extends ConfigFormBase {
/**
* The module handler.
*
* @var \Drupal\Core\Extension\ModuleHandler
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;
......@@ -75,7 +75,7 @@ class SettingsForm extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public function __construct(ConfigFactoryInterface $config_factory, SiteimproveUtils $siteimprove, SiteimproveDomainManager $pluginManagerSiteimproveDomain, Messenger $messenger, Client $httpClient, EntityStorageInterface $vocabulary_storage, ModuleHandler $moduleHandler, ?EntityStorageInterface $groupTypeStorage) {
public function __construct(ConfigFactoryInterface $config_factory, SiteimproveUtils $siteimprove, SiteimproveDomainManager $pluginManagerSiteimproveDomain, MessengerInterface $messenger, Client $httpClient, EntityStorageInterface $vocabulary_storage, ModuleHandlerInterface $moduleHandler, ?EntityStorageInterface $groupTypeStorage) {
parent::__construct($config_factory);
$this->siteimprove = $siteimprove;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment