You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
Update security.rst
Add third argument on example of config of DefaultLoginRateLimiter.
After migrate 6.2 to 6.4.1 i got an error :
Too few arguments to function Symfony\Component\Security\Http\RateLimiter\DefaultLoginRateLimiter::__construct(), 2 passed in /var/www/html/var/cache/dev/ContainerJcwPZ89/getSecurity_Listener_LoginThrottling_MainService.php on line 41 and exactly 3 expected
in the class
```php
/**
* `@param` non-empty-string $secret A secret to use for hashing the IP address and username
*/
public function __construct(RateLimiterFactory $globalFactory, RateLimiterFactory $localFactory, #[\SensitiveParameter] string $secret)
{
if (!$secret) {
throw new InvalidArgumentException('A non-empty secret is required.');
}
$this->globalFactory = $globalFactory;
$this->localFactory = $localFactory;
$this->secret = $secret;
}
```
So, it will be nice to update these config example section !
Commits
-------
a2e1f55 Update security.rst
0 commit comments