diff -u b/core/modules/system/tests/modules/menu_test/menu_test.module b/core/modules/system/tests/modules/menu_test/menu_test.module --- b/core/modules/system/tests/modules/menu_test/menu_test.module +++ b/core/modules/system/tests/modules/menu_test/menu_test.module @@ -132,7 +132,7 @@ // Initialize the theme system so that $theme_key will be populated. drupal_theme_initialize(); // Now we check what the theme negotiator service returns. - $active_theme = \Drupal::service('theme.negotiator')->determineActiveTheme(\Drupal::routeMatch()); + $active_theme = \Drupal::service('theme.negotiator')->determineActiveTheme(\Drupal::routeMatch(), \Drupal::request()); $output = "Active theme: $active_theme. Actual theme: $theme_key."; if ($inherited) { $output .= ' Theme negotiation inheritance is being tested.'; diff -u b/core/modules/tour/tour.module b/core/modules/tour/tour.module --- b/core/modules/tour/tour.module +++ b/core/modules/tour/tour.module @@ -91,7 +91,7 @@ if (!empty($results) && $tours = entity_load_multiple('tour', array_keys($results))) { foreach ($tours as $id => $tour) { // Match on params. - if (!$tour->hasMatchingRoute($route_name, $route_match->getRawArguments())) { + if (!$tour->hasMatchingRoute($route_name, $route_match->getRawArguments()->all())) { unset($tours[$id]); } } only in patch2: unchanged: --- a/core/modules/rest/lib/Drupal/rest/RequestHandler.php +++ b/core/modules/rest/lib/Drupal/rest/RequestHandler.php @@ -26,7 +26,7 @@ class RequestHandler implements ContainerAwareInterface { /** * Handles a web API request. * - * @param Symfony\Component\HttpFoundation\Request $request + * @param \Symfony\Component\HttpFoundation\Request $request * The HTTP request object. * * @return \Symfony\Component\HttpFoundation\Response @@ -73,10 +73,9 @@ public function handle(Request $request) { // Determine the request parameters that should be passed to the resource // plugin. - $route_parameters = $request->attributes->get('_route_params'); $parameters = array(); // Filter out all internal parameters starting with "_". - foreach ($route_parameters as $key => $parameter) { + foreach ($request->attributes as $key => $parameter) { if ($key{0} !== '_') { $parameters[] = $parameter; }