You are here

public function IpBanSubscriber::__construct in IP Ban 8

Constructs a BanMiddleware object.

Parameters

\Drupal\ban\IpBanSetBanInterface $manager: The IP Ban manager.

File

src/EventSubscriber/IpBanSubscriber.php, line 31
Contains \Drupal\ip_ban\EventSubscriber\IpBanSubscriber.

Class

IpBanSubscriber

Namespace

Drupal\ip_ban\EventSubscriber

Code

public function __construct(IpBanSetBanInterface $manager) {
  $this->iPBanManager = $manager;
}