Skip to content
Snippets Groups Projects
Commit f368409f authored by Katherine Bailey's avatar Katherine Bailey Committed by Alex Bronstein
Browse files

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

parent dca406aa
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -59,15 +59,6 @@ public function build(ContainerBuilder $container) {
$container->register('router.dumper', '\Drupal\Core\Routing\MatcherDumper')
->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
// performant to do so: http://drupal.org/node/1706064.
$dispatcher = $container->get('dispatcher');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment