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..70f8ed4 100644 --- a/src/Event/EntityImportMigrationStubEvent.php +++ b/src/Event/EntityImportMigrationStubEvent.php @@ -8,7 +8,7 @@ use Symfony\Component\EventDispatcher\Event; /** * Define entity import migration stub event. */ -class EntityImportMigrationStubEvent extends Event { +class EntityImportMigrationStubEvent extends \Symfony\Contracts\EventDispatcher\Event { /** * @var string