public function PathMatcher::__construct

public PathMatcher::__construct(ConfigFactoryInterface $config_factory, RouteMatchInterface $route_match)

Creates a new PathMatcher.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

core/lib/Drupal/Core/Path/PathMatcher.php, line 57

Class

PathMatcher
Provides a path matcher.

Namespace

Drupal\Core\Path

Code

public function __construct(ConfigFactoryInterface $config_factory, RouteMatchInterface $route_match) {
  $this->configFactory = $config_factory;
  $this->routeMatch = $route_match;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Path!PathMatcher.php/function/PathMatcher::__construct/8.1.x