PHP code example of 41man / login-gate-bundle
1. Go to this page and download the library: Download 41man/login-gate-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
41man / login-gate-bundle example snippets
namespace App\Controller;
use Anyx\LoginGateBundle\Service\BruteForceChecker;
/**
* @var BruteForceChecker $bruteForceChecker
*/
private $bruteForceChecker;
/**
* SecurityController constructor.
* @param BruteForceChecker $bruteForceChecker
*/
public function __construct(BruteForceChecker $bruteForceChecker)
{
$this->bruteForceChecker = $bruteForceChecker;
}
$this->bruteForceChecker->canLogin($request)
$this->bruteForceChecker->getStorage()->clearCountAttempts($request);