You are here

public function CredentialsCheckFlood::__construct in Commerce Core 8.2

Constructs a new CredentialsCheckFlood object.

Parameters

\Drupal\Core\Flood\FloodInterface $flood: The flood controller.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/CredentialsCheckFlood.php, line 54

Class

CredentialsCheckFlood
Provides flood protection for login credential checks.

Namespace

Drupal\commerce

Code

public function __construct(FloodInterface $flood, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  $this->flood = $flood;
  $this->entityTypeManager = $entity_type_manager;
  $this->config = $config_factory
    ->get('user.flood');
}