public function BanIpManager::__construct

Construct the BanSubscriber.

Parameters

Drupal\Core\Database\Connection $connection: The database connection which will be used to check the IP against.

File

drupal/core/modules/ban/lib/Drupal/ban/BanIpManager.php, line 30
Definition of Drupal\ban\BanIpManager.

Class

BanIpManager
Ban IP manager.

Namespace

Drupal\ban

Code

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