diff options
author | Nicolas Grekas <nicolas.grekas@gmail.com> | 2015-10-14 16:40:43 +0200 |
---|---|---|
committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2015-10-28 03:15:07 +0100 |
commit | 1473342e7bb5d3d3080f78b196f528b4acf34db2 (patch) | |
tree | 3319333a745b78bd7b4b04c504be69d7543f729b /Core/Encoder/BCryptPasswordEncoder.php | |
parent | d355322988b1c1d1798e19c41cc86b4169c31f2a (diff) | |
download | symfony-security-1473342e7bb5d3d3080f78b196f528b4acf34db2.zip symfony-security-1473342e7bb5d3d3080f78b196f528b4acf34db2.tar.gz symfony-security-1473342e7bb5d3d3080f78b196f528b4acf34db2.tar.bz2 |
Rely on iconv and symfony/polyfill-*
Diffstat (limited to 'Core/Encoder/BCryptPasswordEncoder.php')
-rw-r--r-- | Core/Encoder/BCryptPasswordEncoder.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Core/Encoder/BCryptPasswordEncoder.php b/Core/Encoder/BCryptPasswordEncoder.php index d2b0319..c0c8fe0 100644 --- a/Core/Encoder/BCryptPasswordEncoder.php +++ b/Core/Encoder/BCryptPasswordEncoder.php @@ -34,10 +34,6 @@ class BCryptPasswordEncoder extends BasePasswordEncoder */ public function __construct($cost) { - if (!function_exists('password_hash')) { - throw new \RuntimeException('To use the BCrypt encoder, you need to upgrade to PHP 5.5 or install the "ircmaxell/password-compat" via Composer.'); - } - $cost = (int) $cost; if ($cost < 4 || $cost > 31) { throw new \InvalidArgumentException('Cost must be in the range of 4-31.'); |