Commit 25085cb3 authored by mr.baileys's avatar mr.baileys Committed by claudiu.cristea

Issue #3067312 by mr.baileys, claudiu.cristea: SpreadsheetIterator should not be a service

parent 6a7e2e71
services:
migrate_spreadsheet.iterator:
class: Drupal\migrate_spreadsheet\SpreadsheetIterator
......@@ -9,6 +9,7 @@ use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\MigrateException;
use Drupal\migrate\Plugin\migrate\source\SourcePluginBase;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate_spreadsheet\SpreadsheetIterator;
use Drupal\migrate_spreadsheet\SpreadsheetIteratorInterface;
use PhpOffice\PhpSpreadsheet\IOFactory;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -79,7 +80,7 @@ class Spreadsheet extends SourcePluginBase implements ConfigurablePluginInterfac
$plugin_definition,
$migration,
$container->get('file_system'),
$container->get('migrate_spreadsheet.iterator')
new SpreadsheetIterator()
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment