public function PathValidator::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Path/PathValidator.php \Drupal\Core\Path\PathValidator::__construct()
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 67 - Contains \Drupal\Core\Path\PathValidator.
Class
- PathValidator
- Provides a default path validator and access checker.
Namespace
Drupal\Core\PathCode
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;
}