You are here

public function UrlMatcher::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/routing/Matcher/UrlMatcher.php \Symfony\Component\Routing\Matcher\UrlMatcher::__construct()
  2. 8 core/lib/Drupal/Core/Routing/UrlMatcher.php \Drupal\Core\Routing\UrlMatcher::__construct()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/UrlMatcher.php \Drupal\Core\Routing\UrlMatcher::__construct()

Constructs a new UrlMatcher.

The parent class has a constructor we need to skip, so just override it with a no-op.

Parameters

\Drupal\Core\Path\CurrentPathStack $current_path: The current path.

Overrides UrlMatcher::__construct

File

core/lib/Drupal/Core/Routing/UrlMatcher.php, line 36
Contains \Drupal\Core\Routing\UrlMatcher.

Class

UrlMatcher
Drupal-specific URL Matcher; handles the Drupal "system path" mapping.

Namespace

Drupal\Core\Routing

Code

public function __construct(CurrentPathStack $current_path) {
  $this->currentPath = $current_path;
}