Преглед на файлове

[Form] removed obsolete method

Fabien Potencier преди 14 години
родител
ревизия
97897f532a
променени са 1 файла, в които са добавени 0 реда и са изтрити 25 реда
  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
      */