The database service has been added to the DIC in core so ended up being duplicated here

8.0.x
Katherine Bailey 2012-08-30 21:00:35 -07:00 committed by effulgentsia
parent dca406aa64
commit f368409fcc
1 changed files with 0 additions and 9 deletions

View File

@ -59,15 +59,6 @@ class CoreBundle extends Bundle
$container->register('router.dumper', '\Drupal\Core\Routing\MatcherDumper') $container->register('router.dumper', '\Drupal\Core\Routing\MatcherDumper')
->addArgument(new Reference('database')); ->addArgument(new Reference('database'));
$container->register('database', 'Drupal\Core\Database\Connection')
->setFactoryClass('Drupal\Core\Database\Database')
->setFactoryMethod('getConnection')
->addArgument('default');
$container->register('database.slave', 'Drupal\Core\Database\Connection')
->setFactoryClass('Drupal\Core\Database\Database')
->setFactoryMethod('getConnection')
->addArgument('slave');
// @todo Replace below lines with the commented out block below it when it's // @todo Replace below lines with the commented out block below it when it's
// performant to do so: http://drupal.org/node/1706064. // performant to do so: http://drupal.org/node/1706064.
$dispatcher = $container->get('dispatcher'); $dispatcher = $container->get('dispatcher');