Rename UrlMatcher to LegacyUrlMatcher.
The current matcher is a temporary legacy shiv to support the old routing system. Label it as such so that we can reserve the class name for the new and imroved router.8.0.x
parent
37e72619c1
commit
f5079ffb1b
|
@ -45,7 +45,7 @@ class DrupalKernel extends HttpKernel {
|
|||
public function __construct(EventDispatcherInterface $dispatcher, ControllerResolverInterface $resolver) {
|
||||
parent::__construct($dispatcher, $resolver);
|
||||
|
||||
$this->matcher = new UrlMatcher();
|
||||
$this->matcher = new LegacyUrlMatcher();
|
||||
$this->dispatcher->addSubscriber(new RouterListener($this->matcher));
|
||||
|
||||
$negotiation = new ContentNegotiation();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
/**
|
||||
* @file
|
||||
* Definition of Drupal\Core\UrlMatcher.
|
||||
* Definition of Drupal\Core\LegacyUrlMatcher.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core;
|
||||
|
@ -19,7 +19,7 @@ use Symfony\Component\Routing\RouteCollection;
|
|||
/**
|
||||
* UrlMatcher matches URL based on a set of routes.
|
||||
*/
|
||||
class UrlMatcher implements UrlMatcherInterface {
|
||||
class LegacyUrlMatcher implements UrlMatcherInterface {
|
||||
|
||||
/**
|
||||
* The request context for this matcher.
|
Loading…
Reference in New Issue