public function RouteProvider::__construct

Constructs a new PathMatcher.

Parameters

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

string $table: The table in the database to use for matching.

File

drupal/core/lib/Drupal/Core/Routing/RouteProvider.php, line 52
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, $table = 'router') {
  $this->connection = $connection;
  $this->tableName = $table;
}