Mercurial > hg > isophonics-drupal-site
comparison core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\migrate_drupal; | |
4 | |
5 use Drupal\Core\DependencyInjection\ContainerBuilder; | |
6 use Drupal\Core\DependencyInjection\ServiceProviderBase; | |
7 use Symfony\Component\DependencyInjection\Reference; | |
8 | |
9 /** | |
10 * Alters container services. | |
11 */ | |
12 class MigrateDrupalServiceProvider extends ServiceProviderBase { | |
13 | |
14 /** | |
15 * {@inheritdoc} | |
16 */ | |
17 public function alter(ContainerBuilder $container) { | |
18 parent::alter($container); | |
19 | |
20 $container->getDefinition('plugin.manager.migration') | |
21 ->setClass(MigrationPluginManager::class) | |
22 ->addArgument(new Reference('plugin.manager.migrate.source')) | |
23 ->addArgument(new Reference('config.factory')); | |
24 } | |
25 | |
26 } |