You are here

public function BanIpManager::__construct in Zircon Profile 8.0

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

Construct the BanSubscriber.

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 30
Contains \Drupal\ban\BanIpManager.

Class

BanIpManager
Ban IP manager.

Namespace

Drupal\ban

Code

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