You are here

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

Clears all floods in the system.

@command flood_unblock:all @usage flood_unblock:all

File

src/Commands/FloodUnblockCommands.php, line 66

Class

FloodUnblockCommands
Flood unblock. module's Drush 9 commands.

Namespace

Drupal\flood_control\Commands

Code

public function unblockAll() {
  $this->manager
    ->floodUnblockClearEvent('user.failed_login_ip', NULL);
  $this->manager
    ->floodUnblockClearEvent('user.failed_login_user', NULL);
  $this->manager
    ->floodUnblockClearEvent('user.http_login', NULL);
  $this
    ->output()
    ->writeln('Done');
}