Skip to content

Commit

Permalink
Merge pull request #7862 from cakephp/replace
Browse files Browse the repository at this point in the history
Replace SecurityComponent with FormProtectionComponent (fr, ja)
  • Loading branch information
othercorey authored May 29, 2024
2 parents f17dc12 + 5583867 commit d952f76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fr/views/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2051,13 +2051,13 @@ Fermer le Formulaire
* ``$secureAttributes`` - Optionnel. Vous permet de fournir des attributs qui
seront utilisés comme attributs HTML aux inputs ``hidden`` générés par le
``SecurityComponent``.
``FormProtectionComponent``.

La méthode ``end()`` ferme et complète le marquage du formulaire. Souvent,
``end()`` se contente d'afficher la balise fermante du formulaire, mais
l'utilisation de ``end()`` est une bonne pratique puisqu'elle permet également
au FormHelper d'ajouter les champs cachées dont le
:php:class:`Cake\\Controller\\Component\\SecurityComponent` a besoin:
:php:class:`Cake\\Controller\\Component\\FormProtectionComponent` a besoin:

.. code-block:: php
Expand Down
4 changes: 2 additions & 2 deletions ja/views/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2071,12 +2071,12 @@ submit 入力は、基本的なテキストやイメージが必要な場合に

.. php:method:: end($secureAttributes = [])
* ``$secureAttributes`` - オプション。SecurityComponent 用に生成された非表示の
* ``$secureAttributes`` - オプション。FormProtectionComponent 用に生成された非表示の
input 要素に HTML 属性として渡されるセキュアな属性を提供できます。

``end()`` は、フォームを閉じて完成します。
多くの場合、 ``end()`` は終了タグだけを出力しますが、 ``end()`` を使うと、
FormHelper が :php:class:`Cake\\Controller\\Component\\SecurityComponent` に必要な
FormHelper が :php:class:`Cake\\Controller\\Component\\FormProtectionComponent` に必要な
hidden フォーム要素を挿入できるようになります。

.. code-block:: php
Expand Down

0 comments on commit d952f76

Please sign in to comment.