public function PathMatcher::__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/PathMatcher.php, line 43
Definition of Drupal\Core\Routing\PathMatcher.

Class

PathMatcher
Initial matcher to match a route against a built database, by path.

Namespace

Drupal\Core\Routing

Code

public function __construct(Connection $connection, $table = 'router') {
  $this->connection = $connection;
  $this->tableName = $table;
}