You are here

public function FloodUnblockCommands::unblockAll in Flood Unblock 8

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

Clears all floods in the system.

@command flood_unblock:all @usage flood_unblock:all

File

src/Commands/FloodUnblockCommands.php, line 64

Class

FloodUnblockCommands
Flood unblock. module's Drush 9 commands.

Namespace

Drupal\flood_unblock\Commands

Code

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