diff --git a/src/EntityImportProcessManager.php b/src/EntityImportProcessManager.php index 69ecf4e..1a97ae5 100644 --- a/src/EntityImportProcessManager.php +++ b/src/EntityImportProcessManager.php @@ -56,8 +56,8 @@ class EntityImportProcessManager implements EntityImportProcessManagerInterface ) { $prepare_event = $this->eventDispatcher ->dispatch( - EntityImportEvents::ENTITY_IMPORT_PREPARE_MIGRATION_STUB, - new EntityImportMigrationStubEvent($plugin_id, []) + new EntityImportMigrationStubEvent($plugin_id, []), + EntityImportEvents::ENTITY_IMPORT_PREPARE_MIGRATION_STUB ); $migration = isset($migration) diff --git a/src/Event/EntityImportMigrationStubEvent.php b/src/Event/EntityImportMigrationStubEvent.php index 665a930..d855826 100644 --- a/src/Event/EntityImportMigrationStubEvent.php +++ b/src/Event/EntityImportMigrationStubEvent.php @@ -3,7 +3,7 @@ namespace Drupal\entity_import\Event; -use Symfony\Component\EventDispatcher\Event; +use Symfony\Contracts\EventDispatcher\Event; /** * Define entity import migration stub event.