public function FloodUnblockCommands::unblockIp in Flood Unblock 8.2
Same name and namespace in other branches
- 8 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\CommandsCode
public function unblockIp($ip = NULL) {
$this->manager
->flood_unblock_clear_event('user.failed_login_ip', $ip);
$this
->output()
->writeln('Done');
}