comparison core/lib/Drupal/Core/Routing/MatcherDumper.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
115 'route', 115 'route',
116 ]); 116 ]);
117 $names = []; 117 $names = [];
118 foreach ($routes as $name => $route) { 118 foreach ($routes as $name => $route) {
119 /** @var \Symfony\Component\Routing\Route $route */ 119 /** @var \Symfony\Component\Routing\Route $route */
120 $route->setOption('compiler_class', '\Drupal\Core\Routing\RouteCompiler'); 120 $route->setOption('compiler_class', RouteCompiler::class);
121 /** @var \Drupal\Core\Routing\CompiledRoute $compiled */ 121 /** @var \Drupal\Core\Routing\CompiledRoute $compiled */
122 $compiled = $route->compile(); 122 $compiled = $route->compile();
123 // The fit value is a binary number which has 1 at every fixed path 123 // The fit value is a binary number which has 1 at every fixed path
124 // position and 0 where there is a wildcard. We keep track of all such 124 // position and 0 where there is a wildcard. We keep track of all such
125 // patterns that exist so that we can minimize the number of path 125 // patterns that exist so that we can minimize the number of path