public function FloodUnblockManager::__construct in Flood Unblock 8.2
Same name and namespace in other branches
- 8 src/FloodUnblockManager.php \Drupal\flood_unblock\FloodUnblockManager::__construct()
FloodUnblockAdminForm constructor.
Parameters
\Drupal\Core\Database\Connection $database:
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:
File
- src/
FloodUnblockManager.php, line 51
Class
Namespace
Drupal\flood_unblockCode
public function __construct(Connection $database, FloodInterface $flood, ConfigFactoryInterface $configFactory, EntityTypeManagerInterface $entityTypeManager, MessengerInterface $messenger) {
$this->database = $database;
$this->flood = $flood;
$this->entityTypeManager = $entityTypeManager;
$this->config = $configFactory
->get('user.flood');
$this->messenger = $messenger;
}