You are here

public function MatcherDumper::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/routing/Matcher/Dumper/MatcherDumper.php \Symfony\Component\Routing\Matcher\Dumper\MatcherDumper::__construct()
  2. 8 core/lib/Drupal/Core/Routing/MatcherDumper.php \Drupal\Core\Routing\MatcherDumper::__construct()
  3. 8 core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php \Drupal\Core\ProxyClass\Routing\MatcherDumper::__construct()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/MatcherDumper.php \Drupal\Core\Routing\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 59
Contains \Drupal\Core\Routing\MatcherDumper.

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;
}