public function PathValidator::__construct

public PathValidator::__construct(AccessAwareRouterInterface $access_aware_router, UrlMatcherInterface $access_unaware_router, AccountInterface $account, InboundPathProcessorInterface $path_processor)

Creates a new PathValidator.

Parameters

\Drupal\Core\Routing\AccessAwareRouterInterface $access_aware_router: The access aware router.

\Symfony\Component\Routing\Matcher\UrlMatcherInterface $access_unaware_router: A router implementation which does not check access.

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Core\PathProcessor\InboundPathProcessorInterface $path_processor: The path processor;

File

core/lib/Drupal/Core/Path/PathValidator.php, line 63

Class

PathValidator
Provides a default path validator and access checker.

Namespace

Drupal\Core\Path

Code

public function __construct(AccessAwareRouterInterface $access_aware_router, UrlMatcherInterface $access_unaware_router, AccountInterface $account, InboundPathProcessorInterface $path_processor) {
  $this->accessAwareRouter = $access_aware_router;
  $this->accessUnawareRouter = $access_unaware_router;
  $this->account = $account;
  $this->pathProcessor = $path_processor;
}

© 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!PathValidator.php/function/PathValidator::__construct/8.1.x