You are here

public function FloodUnblockCommands::unblockIp in Flood control 2.0.x

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 39

Class

FloodUnblockCommands
Flood unblock. module's Drush 9 commands.

Namespace

Drupal\flood_control\Commands

Code

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