public function MatcherDumper::__construct

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Routing/MatcherDumper.php \Drupal\Core\Routing\MatcherDumper::__construct()
  2. 8.x drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/MatcherDumper.php \Symfony\Component\Routing\Matcher\Dumper\MatcherDumper::__construct()

Construct the MatcherDumper.

Parameters

Drupal\Core\Database\Connection $connection: The database connection which will be used to store the route information.

string $table: (optional) The table to store the route info in. Defaults to 'router'.

File

drupal/core/lib/Drupal/Core/Routing/MatcherDumper.php, line 55
Definition of Drupal\Core\Routing\MatcherDumper.

Class

MatcherDumper
Dumps Route information to a database table.

Namespace

Drupal\Core\Routing

Code

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