Skip to content
Snippets Groups Projects
Commit 1d25fc9d authored by Jacqueline Young's avatar Jacqueline Young Committed by Owen Bush
Browse files

Issue #3380497 by Jacqui.Tenderwolf: Use the ModuleHandlerInterface instead of...

Issue #3380497 by Jacqui.Tenderwolf: Use the ModuleHandlerInterface instead of the ModuleHandle in EventCreationService
parent 8d84430b
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ use Drupal\Core\Logger\LoggerChannelFactoryInterface; ...@@ -8,7 +8,7 @@ use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\Core\Messenger\Messenger; use Drupal\Core\Messenger\Messenger;
use Drupal\Core\Utility\Token; use Drupal\Core\Utility\Token;
use Drupal\recurring_events_registration\Entity\RegistrantInterface; use Drupal\recurring_events_registration\Entity\RegistrantInterface;
use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Queue\QueueFactory; use Drupal\Core\Queue\QueueFactory;
...@@ -55,7 +55,7 @@ class NotificationService { ...@@ -55,7 +55,7 @@ class NotificationService {
/** /**
* The module handler service. * The module handler service.
* *
* @var \Drupal\Core\Extension\ModuleHandler * @var \Drupal\Core\Extension\ModuleHandlerInterface
*/ */
protected $moduleHandler; protected $moduleHandler;
...@@ -135,14 +135,14 @@ class NotificationService { ...@@ -135,14 +135,14 @@ class NotificationService {
* The messenger service. * The messenger service.
* @param \Drupal\Core\Utility\Token $token * @param \Drupal\Core\Utility\Token $token
* The token service. * The token service.
* @param \Drupal\Core\Extension\ModuleHandler $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler service. * The module handler service.
* @param \Drupal\recurring_events_registration\RegistrationCreationService $creation_service * @param \Drupal\recurring_events_registration\RegistrationCreationService $creation_service
* The registration creation service. * The registration creation service.
* @param \Drupal\Core\Queue\QueueFactory $queue_factory * @param \Drupal\Core\Queue\QueueFactory $queue_factory
* The queue factory. * The queue factory.
*/ */
public function __construct(TranslationInterface $translation, ConfigFactory $config_factory, LoggerChannelFactoryInterface $logger, Messenger $messenger, Token $token, ModuleHandler $module_handler, RegistrationCreationService $creation_service, QueueFactory $queue_factory) { public function __construct(TranslationInterface $translation, ConfigFactory $config_factory, LoggerChannelFactoryInterface $logger, Messenger $messenger, Token $token, ModuleHandlerInterface $module_handler, RegistrationCreationService $creation_service, QueueFactory $queue_factory) {
$this->translation = $translation; $this->translation = $translation;
$this->configFactory = $config_factory; $this->configFactory = $config_factory;
$this->loggerFactory = $logger->get('recurring_events_registration'); $this->loggerFactory = $logger->get('recurring_events_registration');
......
...@@ -13,7 +13,7 @@ use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface; ...@@ -13,7 +13,7 @@ use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface;
use Drupal\Core\Entity\EntityFieldManager; use Drupal\Core\Entity\EntityFieldManager;
use Drupal\Core\Field\FieldTypePluginManager; use Drupal\Core\Field\FieldTypePluginManager;
use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\KeyValueStore\KeyValueFactoryInterface; use Drupal\Core\KeyValueStore\KeyValueFactoryInterface;
use Drupal\recurring_events\Entity\EventInstance; use Drupal\recurring_events\Entity\EventInstance;
...@@ -72,7 +72,7 @@ class EventCreationService { ...@@ -72,7 +72,7 @@ class EventCreationService {
/** /**
* The module handler service. * The module handler service.
* *
* @var \Drupal\Core\Extension\ModuleHandler * @var \Drupal\Core\Extension\ModuleHandlerInterface
*/ */
protected $moduleHandler; protected $moduleHandler;
...@@ -105,14 +105,14 @@ class EventCreationService { ...@@ -105,14 +105,14 @@ class EventCreationService {
* The field type plugin manager. * The field type plugin manager.
* @param \Drupal\Core\Entity\EntityFieldManager $entity_field_manager * @param \Drupal\Core\Entity\EntityFieldManager $entity_field_manager
* The entity field manager. * The entity field manager.
* @param \Drupal\Core\Extension\ModuleHandler $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler service. * The module handler service.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager service. * The entity type manager service.
* @param \Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value * @param \Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value
* The key value storage service. * The key value storage service.
*/ */
public function __construct(TranslationInterface $translation, Connection $database, LoggerChannelFactoryInterface $logger, Messenger $messenger, FieldTypePluginManager $field_type_plugin_manager, EntityFieldManager $entity_field_manager, ModuleHandler $module_handler, EntityTypeManagerInterface $entity_type_manager, KeyValueFactoryInterface $key_value) { public function __construct(TranslationInterface $translation, Connection $database, LoggerChannelFactoryInterface $logger, Messenger $messenger, FieldTypePluginManager $field_type_plugin_manager, EntityFieldManager $entity_field_manager, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, KeyValueFactoryInterface $key_value) {
$this->translation = $translation; $this->translation = $translation;
$this->database = $database; $this->database = $database;
$this->loggerChannel = $logger->get('recurring_events'); $this->loggerChannel = $logger->get('recurring_events');
......
...@@ -17,7 +17,7 @@ use Drupal\Core\Entity\EntityRepositoryInterface; ...@@ -17,7 +17,7 @@ use Drupal\Core\Entity\EntityRepositoryInterface;
use Drupal\Component\Datetime\TimeInterface; use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Session\AccountProxyInterface; use Drupal\Core\Session\AccountProxyInterface;
use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Extension\ModuleHandler; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\user\UserInterface; use Drupal\user\UserInterface;
/** /**
...@@ -93,7 +93,7 @@ class EventSeriesForm extends ContentEntityForm { ...@@ -93,7 +93,7 @@ class EventSeriesForm extends ContentEntityForm {
/** /**
* The module handler service. * The module handler service.
* *
* @var \Drupal\Core\Extension\ModuleHandler * @var \Drupal\Core\Extension\ModuleHandlerInterface
*/ */
protected $moduleHandler; protected $moduleHandler;
...@@ -147,12 +147,12 @@ class EventSeriesForm extends ContentEntityForm { ...@@ -147,12 +147,12 @@ class EventSeriesForm extends ContentEntityForm {
* The time interface. * The time interface.
* @param \Drupal\Core\Session\AccountProxyInterface $current_user * @param \Drupal\Core\Session\AccountProxyInterface $current_user
* The current user. * The current user.
* @param \Drupal\Core\Extension\ModuleHandler $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler service. * The module handler service.
* @param \Drupal\Core\Config\ConfigFactory $config_factory * @param \Drupal\Core\Config\ConfigFactory $config_factory
* The config factory. * The config factory.
*/ */
public function __construct(EventCreationService $creation_service, EntityStorageInterface $storage, Messenger $messenger, DateFormatter $date_formatter, EntityFieldManager $entity_field_manager, FieldTypePluginManager $field_type_plugin_manager, EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, AccountProxyInterface $current_user = NULL, ModuleHandler $module_handler = NULL, ConfigFactory $config_factory = NULL) { public function __construct(EventCreationService $creation_service, EntityStorageInterface $storage, Messenger $messenger, DateFormatter $date_formatter, EntityFieldManager $entity_field_manager, FieldTypePluginManager $field_type_plugin_manager, EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, AccountProxyInterface $current_user = NULL, ModuleHandlerInterface $module_handler = NULL, ConfigFactory $config_factory = NULL) {
$this->creationService = $creation_service; $this->creationService = $creation_service;
$this->storage = $storage; $this->storage = $storage;
$this->messenger = $messenger; $this->messenger = $messenger;
......
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