public function MigrateDrupalServiceProvider::alter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php \Drupal\migrate_drupal\MigrateDrupalServiceProvider::alter()
Modifies existing service definitions.
Parameters
ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.
Overrides ServiceProviderBase::alter
File
- core/
modules/ migrate_drupal/ src/ MigrateDrupalServiceProvider.php, line 17
Class
- MigrateDrupalServiceProvider
- Alters container services.
Namespace
Drupal\migrate_drupalCode
public function alter(ContainerBuilder $container) {
parent::alter($container);
$container
->getDefinition('plugin.manager.migration')
->setClass(MigrationPluginManager::class)
->addArgument(new Reference('plugin.manager.migrate.source'))
->addArgument(new Reference('config.factory'));
}