Our UrlMatcher has no need for the constructor parameters, so eliminate them entirely to simplify matters.
parent
ed9c2a50f5
commit
35230f21ec
|
@ -2,6 +2,9 @@
|
|||
|
||||
namespace Drupal\Core\Routing;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\RouteCollection;
|
||||
use Symfony\Component\Routing\RequestContext;
|
||||
use Symfony\Cmf\Component\Routing\NestedMatcher\UrlMatcher as BaseUrlMatcher;
|
||||
|
||||
/**
|
||||
|
@ -11,6 +14,8 @@ use Symfony\Cmf\Component\Routing\NestedMatcher\UrlMatcher as BaseUrlMatcher;
|
|||
*/
|
||||
class UrlMatcher extends BaseUrlMatcher {
|
||||
|
||||
public function __construct() {}
|
||||
|
||||
public function finalMatch(RouteCollection $collection, Request $request) {
|
||||
$this->routes = $collection;
|
||||
$context = new RequestContext();
|
||||
|
|
Loading…
Reference in New Issue