You are here

public function PageNotFoundEventSubscriber::__construct in Apigee API Catalog 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/PageNotFoundEventSubscriber.php \Drupal\apigee_api_catalog\EventSubscriber\PageNotFoundEventSubscriber::__construct()

PageNotFoundEventSubscriber constructor.

Parameters

\Drupal\Core\Path\PathMatcherInterface $path_matcher: The patch matcher service.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator service.

File

src/EventSubscriber/PageNotFoundEventSubscriber.php, line 60

Class

PageNotFoundEventSubscriber
Handles not found exceptions for apidoc entities.

Namespace

Drupal\apigee_api_catalog\EventSubscriber

Code

public function __construct(PathMatcherInterface $path_matcher, PathValidatorInterface $path_validator) {
  $this->pathValidator = $path_validator;
  $this->pathMatcher = $path_matcher;
}