summaryrefslogtreecommitdiffstats
path: root/Core/Encoder/BCryptPasswordEncoder.php
diff options
context:
space:
mode:
authorGraham Campbell <graham@mineuk.com>2014-11-30 21:18:40 +0000
committerNicolas Grekas <nicolas.grekas@gmail.com>2014-12-30 11:17:11 +0100
commitd278266e82082b8605dffb29151bd77b9f3d334f (patch)
treef03b1102eb11208ab010e3f57ba036e555a167e6 /Core/Encoder/BCryptPasswordEncoder.php
parentcf187660de37c0dc7a4dec4475845c314e8fb91f (diff)
downloadsymfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.zip
symfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.tar.gz
symfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.tar.bz2
[3.0] Removed some old hacks
Diffstat (limited to 'Core/Encoder/BCryptPasswordEncoder.php')
-rw-r--r--Core/Encoder/BCryptPasswordEncoder.php4
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.');