Pārlūkot izejas kodu

[Form] removed obsolete method

Fabien Potencier 14 gadi atpakaļ
vecāks
revīzija
97897f532a
1 mainītis faili ar 0 papildinājumiem un 25 dzēšanām
  1. 0 25
      src/Symfony/Component/Form/Form.php

+ 0 - 25
src/Symfony/Component/Form/Form.php

@@ -203,31 +203,6 @@ class Form extends FieldGroup
         parent::bind($taintedData);
     }
 
-    /**
-     * Returns a CSRF token for the given CSRF secret
-     *
-     * If you want to change the algorithm used to compute the token, you
-     * can override this method.
-     *
-     * @param  string $secret The secret string to use
-     *
-     * @return string A token string
-     */
-    protected function generateCsrfToken(array $secrets)
-    {
-        $implodedSecrets = get_class($this);
-
-        foreach ($secrets as $secret) {
-            if ($secret instanceof \Closure) {
-                $secret = $secret();
-            }
-
-            $implodedSecrets .= $secret;
-        }
-
-        return md5($implodedSecrets);
-    }
-
     /**
      * @return true if this form is CSRF protected
      */