You are here

public function LegacyBackend::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Flood/LegacyBackend.php \Drupal\service_container\Flood\LegacyBackend::__construct()

Construct the DatabaseBackend.

Parameters

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

\Drupal\service_container\Legacy\Drupal7: The Drupal 7 legacy service.

File

src/Flood/LegacyBackend.php, line 43
Definition of Drupal\service_container\Flood\LegacyBackend.

Class

LegacyBackend
Defines the database flood backend. This is the default Drupal backend. @codeCoverageIgnore

Namespace

Drupal\service_container\Flood

Code

public function __construct(Connection $connection, Drupal7 $drupal7) {
  $this->connection = $connection;
  $this->drupal7 = $drupal7;
}