Skip to content

Instantly share code, notes, and snippets.

@saltednut
Created July 22, 2016 15:09
Show Gist options
  • Save saltednut/45c4d47c3c31ecdc776893cd8ed8813a to your computer and use it in GitHub Desktop.
Save saltednut/45c4d47c3c31ecdc776893cd8ed8813a to your computer and use it in GitHub Desktop.
Migrate 8.x woes
diff --git a/src/ScenariosHandler.php b/src/ScenariosHandler.php
index 9652385..af5f747 100644
--- a/src/ScenariosHandler.php
+++ b/src/ScenariosHandler.php
@@ -219,7 +219,8 @@ class ScenariosHandler implements ContainerInjectionInterface {
$migrations = scenarios_scenario_migrations($scenario);
// Run the migrations in the provided order.
- $migration_manager = $this->migrationPluginManager;
+ //$migration_manager = $this->migrationPluginManager;
+ $migration_manager = \Drupal::service('plugin.manager.migration');
$migration_manager->clearCachedDefinitions();
foreach ($migrations as $migration) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment