You are here

public function IpBanSubscriber::hookInit in IP Ban 8

Sets the ban value and action for authenticated users.

Parameters

\Symfony\Component\HttpKernel\Event\GetResponseEvent $event: The event to process.

File

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

Class

IpBanSubscriber

Namespace

Drupal\ip_ban\EventSubscriber

Code

public function hookInit(GetResponseEvent $event) {

  // \Drupal::service("router.builder")->rebuild();
  $this->iPBanManager
    ->iPBanSetValue();
  $this->iPBanManager
    ->iPBanDetermineAction();
}