function MatcherDumper::__construct

Construct the MatcherDumper.

Parameters

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

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

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

File

core/lib/Drupal/Core/Routing/MatcherDumper.php, line 57

Class

MatcherDumper
Dumps Route information to a database table.

Namespace

Drupal\Core\Routing

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.