Skip to content
Snippets Groups Projects
Commit bb8ffde1 authored by Vitalii Podoba's avatar Vitalii Podoba
Browse files

[#3381498] Fixed the variable type argument

parent 763dbde2
No related branches found
No related tags found
1 merge request!35[#3381498] Fixed the variable type argument
......@@ -3,7 +3,7 @@
namespace Drupal\migrate_file_to_media\Plugin\migrate\process;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface;
use Drupal\crop\Entity\Crop;
......@@ -42,9 +42,9 @@ class MediaFileCopy extends FileCopy {
/**
* The module handler service.
*
* @var \Drupal\Core\Extension\ModuleHandler
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected ModuleHandler $moduleHandler;
protected ModuleHandlerInterface $moduleHandler;
/**
* The file repository.
......@@ -70,7 +70,7 @@ class MediaFileCopy extends FileCopy {
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, $plugin_id, array $plugin_definition, StreamWrapperManagerInterface $stream_wrappers, FileSystemInterface $file_system, MigrateProcessInterface $download_plugin, ModuleHandler $module_handler, FileRepositoryInterface $file_repository, EntityTypeManagerInterface $entityTypeManager) {
public function __construct(array $configuration, $plugin_id, array $plugin_definition, StreamWrapperManagerInterface $stream_wrappers, FileSystemInterface $file_system, MigrateProcessInterface $download_plugin, ModuleHandlerInterface $module_handler, FileRepositoryInterface $file_repository, EntityTypeManagerInterface $entityTypeManager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $stream_wrappers, $file_system, $download_plugin);
$this->moduleHandler = $module_handler;
$this->fileRepository = $file_repository;
......
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