You are here

public function RouteProvider::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::__construct()

Constructs a new PathMatcher.

Parameters

\Drupal\Core\Database\Connection $connection: A database connection object.

\Drupal\Core\State\StateInterface $state: The state.

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

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

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

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tag_invalidator: The cache tag invalidator.

string $table: (Optional) The table in the database to use for matching. Defaults to 'router'

File

core/lib/Drupal/Core/Routing/RouteProvider.php, line 115
Contains \Drupal\Core\Routing\RouteProvider.

Class

RouteProvider
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

public function __construct(Connection $connection, StateInterface $state, CurrentPathStack $current_path, CacheBackendInterface $cache_backend, InboundPathProcessorInterface $path_processor, CacheTagsInvalidatorInterface $cache_tag_invalidator, $table = 'router') {
  $this->connection = $connection;
  $this->state = $state;
  $this->currentPath = $current_path;
  $this->cache = $cache_backend;
  $this->cacheTagInvalidator = $cache_tag_invalidator;
  $this->pathProcessor = $path_processor;
  $this->tableName = $table;
}