You are here

public function BanIpManager::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/ban/src/BanIpManager.php \Drupal\ban\BanIpManager::__construct()

Constructs a BanIpManager object.

Parameters

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

File

core/modules/ban/src/BanIpManager.php, line 25

Class

BanIpManager
Ban IP manager.

Namespace

Drupal\ban

Code

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