class MigrateDrupalServiceProvider

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php \Drupal\migrate_drupal\MigrateDrupalServiceProvider
  2. 10 core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php \Drupal\migrate_drupal\MigrateDrupalServiceProvider
  3. 11.x core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php \Drupal\migrate_drupal\MigrateDrupalServiceProvider

Alters container services.

Hierarchy

Expanded class hierarchy of MigrateDrupalServiceProvider

File

core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php, line 12

Namespace

Drupal\migrate_drupal
View 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

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
MigrateDrupalServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.