diff --git a/.gitattributes b/.gitattributes index b377ffb..ac74072 100644 --- a/.gitattributes +++ b/.gitattributes @@ -51,3 +51,5 @@ *.png -text diff *.phar -text diff *.exe -text diff +*.php set diff + diff --git a/core/lib/Drupal/Core/Update/UpdateKernel.php b/core/lib/Drupal/Core/Update/UpdateKernel.php index 1c2ca61..de7da1b 100755 --- a/core/lib/Drupal/Core/Update/UpdateKernel.php +++ b/core/lib/Drupal/Core/Update/UpdateKernel.php @@ -60,27 +60,6 @@ class UpdateKernel extends DrupalKernel { } /** - * {@inheritdoc} - */ - protected function initializeContainer() { - $container = parent::initializeContainer(); - - $routes = new RouteCollection(); - - $routes->add('', new Route('/', ['_title' => 'Home'], ['_access' => 'TRUE'])); - $routes->add('', new Route('', [], ['_access' => 'TRUE'], ['_no_path' => TRUE])); - $routes->add('', new Route('')); - $routes->add('system.site_maintenance_mode', new Route('/admin/config/development/maintenance', ['_title' => 'Maintenance mode'], ['_permission' => 'administer site configuration'])); - $routes->add('system.db_update', new Route('/update.php/{op}', ['op' => 'info'], ['_access' => 'TRUE'])); - - $mock_route_provider = new MockRouteProvider($routes); - $container->set('@router.route_provider', $mock_route_provider); - - return $container; - } - - - /** * Generates the actual result of update.php. * * The actual logic of the update is done in the db update controller.