comparison core/lib/Drupal/Core/Routing/RouteBuilder.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
166 'host' => NULL, 166 'host' => NULL,
167 'schemes' => [], 167 'schemes' => [],
168 'methods' => [], 168 'methods' => [],
169 'condition' => '', 169 'condition' => '',
170 ]; 170 ];
171 // Ensure routes default to using Drupal's route compiler instead of
172 // Symfony's.
173 $route_info['options'] += [
174 'compiler_class' => RouteCompiler::class,
175 ];
171 176
172 $route = new Route($route_info['path'], $route_info['defaults'], $route_info['requirements'], $route_info['options'], $route_info['host'], $route_info['schemes'], $route_info['methods'], $route_info['condition']); 177 $route = new Route($route_info['path'], $route_info['defaults'], $route_info['requirements'], $route_info['options'], $route_info['host'], $route_info['schemes'], $route_info['methods'], $route_info['condition']);
173 $collection->add($name, $route); 178 $collection->add($name, $route);
174 } 179 }
175 } 180 }