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
Larry Garfield 2012-05-20 19:29:26 -05:00
parent 37e72619c1
commit f5079ffb1b
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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.