You are here

public function FloodUnblockCommands::unblockIp in Flood Unblock 8

Same name and namespace in other branches
  1. 8.2 src/Commands/FloodUnblockCommands.php \Drupal\flood_unblock\Commands\FloodUnblockCommands::unblockIp()

Clears the floods based on IP.

@command flood_unblock:ip @usage flood_unblock:ip

Parameters

string $ip: IP to clear.

File

src/Commands/FloodUnblockCommands.php, line 37

Class

FloodUnblockCommands
Flood unblock. module's Drush 9 commands.

Namespace

Drupal\flood_unblock\Commands

Code

public function unblockIp($ip = NULL) {
  $this->manager
    ->flood_unblock_clear_event('user.failed_login_ip', $ip);
  $this
    ->output()
    ->writeln('Done');
}