소스 검색

[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
      */