public function BanIpManager::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\banCode
public function __construct(Connection $connection) {
$this->connection = $connection;
}