You are here

public function AdvbanIpManager::__construct in Advanced ban 8

Construct the AdvbanIpManager.

Parameters

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

\Drupal\Core\Config\ConfigFactory $config: The configuration factory service.

\Drupal\Core\Datetime\DateFormatter $dateFormatter: The date formatter service.

\Drupal\Component\Datetime\Time $time: The time service.

File

src/AdvbanIpManager.php, line 58

Class

AdvbanIpManager
Ban IP manager.

Namespace

Drupal\advban

Code

public function __construct(Connection $connection, ConfigFactory $config, DateFormatter $dateFormatter, Time $time) {
  $this->connection = $connection;
  $this->config = $config;
  $this->dateFormatter = $dateFormatter;
  $this->time = $time;
}