class MigrateDrupalServiceProvider in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php \Drupal\migrate_drupal\MigrateDrupalServiceProvider
- 10 core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php \Drupal\migrate_drupal\MigrateDrupalServiceProvider
Alters container services.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\migrate_drupal\MigrateDrupalServiceProvider
Expanded class hierarchy of MigrateDrupalServiceProvider
File
- core/
modules/ migrate_drupal/ src/ MigrateDrupalServiceProvider.php, line 12
Namespace
Drupal\migrate_drupalView source
class MigrateDrupalServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
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'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateDrupalServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |