diff options
Diffstat (limited to 'Csrf/TokenGenerator/UriSafeTokenGenerator.php')
-rw-r--r-- | Csrf/TokenGenerator/UriSafeTokenGenerator.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Csrf/TokenGenerator/UriSafeTokenGenerator.php b/Csrf/TokenGenerator/UriSafeTokenGenerator.php index 432adf2..fb3f7e8 100644 --- a/Csrf/TokenGenerator/UriSafeTokenGenerator.php +++ b/Csrf/TokenGenerator/UriSafeTokenGenerator.php @@ -11,8 +11,6 @@ namespace Symfony\Component\Security\Csrf\TokenGenerator; -use Symfony\Component\Security\Core\Util\SecureRandomInterface; - /** * Generates CSRF tokens. * @@ -34,13 +32,7 @@ class UriSafeTokenGenerator implements TokenGeneratorInterface */ public function __construct($entropy = 256) { - if ($entropy instanceof SecureRandomInterface || func_num_args() === 2) { - @trigger_error('The '.__METHOD__.' method now requires the entropy to be given as the first argument. The SecureRandomInterface will be removed in 3.0.', E_USER_DEPRECATED); - - $this->entropy = func_num_args() === 2 ? func_get_arg(1) : 256; - } else { - $this->entropy = $entropy; - } + $this->entropy = $entropy; } /** |