Skip to content

Commit 618610e

Browse files
authored
Merge pull request #8133 from merutin/5.x-delete-deleted-component
Deleted a feature that remained in the Japanese version.
2 parents 2572a3c + 823e6f3 commit 618610e

File tree

12 files changed

+11
-1287
lines changed

12 files changed

+11
-1287
lines changed

ja/controllers/components.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ CakePHP の中に含まれるコンポーネントの詳細については、各
1414
.. toctree::
1515
:maxdepth: 1
1616

17-
/controllers/components/authentication
1817
/controllers/components/flash
19-
/controllers/components/security
2018
/controllers/components/request-handling
2119
/controllers/components/form-protection
2220
/controllers/components/check-http-cache
@@ -85,15 +83,15 @@ CakePHP の中に含まれるコンポーネントの詳細については、各
8583
}
8684
}
8785

88-
// src/Controller/Component/MyAuthComponent.php
89-
use Cake\Controller\Component\AuthComponent;
86+
// src/Controller/Component/MyFlashComponent.php
87+
use Cake\Controller\Component\FlashComponent;
9088

91-
class MyAuthComponent extends AuthComponent
89+
class MyFlashComponent extends FlashComponent
9290
{
93-
// コア AuthComponent を上書きするコードを追加
91+
// Add your code to override the core FlashComponent
9492
}
9593

96-
上記の例ではコントローラーにて ``MyAuthComponent`` に ``$this->Auth`` という
94+
上記の例ではコントローラーにて ``MyFlushComponent`` に ``$this->Flash`` という
9795
*別名* をつけています。
9896

9997
.. note::

ja/controllers/components/authentication.rst

Lines changed: 0 additions & 1044 deletions
This file was deleted.

ja/controllers/components/security.rst

Lines changed: 0 additions & 190 deletions
This file was deleted.

ja/core-libraries/app.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ App クラスはリソースの位置とパスの管理を担当します。
1616
CakePHP が使用する短い形式の名前を解決し、完全解決されたクラス名を返します。 ::
1717

1818
// 短いクラス名を名前空間とサフィックスで解決します。
19-
App::className('Auth', 'Controller/Component', 'Component');
20-
// Cake\Controller\Component\AuthComponent を返します
19+
App::className('Flash', 'Controller/Component', 'Component');
20+
// Cake\Controller\Component\FlashComponent を返します
2121

2222
// プラグイン名を解決します。
2323
App::className('DebugKit.Toolbar', 'Controller/Component', 'Component');

ja/deployment.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ variables.
6969

7070
* :ref:`csrf-middleware` コンポーネントまたはミドルウェアを使用していることを確認して
7171
下さい。
72-
* :doc:`/controllers/components/security` コンポーネントを有効化しておいた方が
72+
* :doc:`/controllers/components/form-protection` コンポーネントを有効化しておいた方が
7373
いいかもしれません。フォームの改ざんや一括代入 (mass-assignment) 脆弱性に関する
7474
問題の発生可能性を削減することができます。
7575
* 各モデルにおいて、正しい :doc:`/core-libraries/validation` ルールが

ja/development/configuration.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ App.baseUrl
9898
App.base
9999
アプリの存在するベースディレクトリーです。もし ``false`` をセットしたら、自動で検出されます。
100100
``false`` 以外の場合、書き出しは `/` から始め、 `/` で終わらないことを確認してください。
101-
例えば、 `/basedir` は有効な App.base です。さもなければ、
102-
AuthComponent は適切に動かなくなります。
101+
例えば、 `/basedir` は有効な App.base です。
103102
App.encoding
104103
あなたのアプリケーションで使用するエンコードを指定します。
105104
このエンコーディングはレイアウトの charset の生成やエンティティーのエンコードに利用されます。

ja/development/sessions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ Null値でない戻り値に対する便宜的なラッパーと同じです。
403403

404404
.. php:method:: renew()
405405
406-
ユーザーがログインやログアウトした時、 ``AuthComponent`` は自動的にセッション ID を更新しますが、
406+
ユーザーがログインやログアウトした時、 ``Authentication Plugin`` は自動的にセッション ID を更新しますが、
407407
セッション ID を手動で切り替えたい時もあるでしょう。そのためには、 ``renew()`` メソッドを
408408
使います。 ::
409409

ja/development/testing.rst

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,42 +1004,6 @@ CakePHP では特別に ``IntegrationTestTrait`` トレイトを提供してい
10041004

10051005
これらのヘルパーメソッドによって設定された状態は、 ``tearDown()`` メソッドでリセットされます。
10061006

1007-
.. _testing-authentication:
1008-
1009-
認証が必要なアクションのテスト
1010-
------------------------------
1011-
1012-
もし ``AuthComponent`` を使用している場合、AuthComponent がユーザーの ID を検証するために
1013-
使用するセッションデータをスタブ化する必要があります。これを行うには、 ``IntegrationTestTrait``
1014-
のヘルパーメソッドを使用します。 ``ArticlesController`` が add メソッドを含み、
1015-
その add メソッドに必要な認証を行っていたと仮定すると、次のテストを書くことができます。 ::
1016-
1017-
public function testAddUnauthenticatedFails(): void
1018-
{
1019-
// セッションデータの未設定
1020-
$this->get('/articles/add');
1021-
1022-
$this->assertRedirect(['controller' => 'Users', 'action' => 'login']);
1023-
}
1024-
1025-
public function testAddAuthenticated(): void
1026-
{
1027-
// セッションデータのセット
1028-
$this->session([
1029-
'Auth' => [
1030-
'User' => [
1031-
'id' => 1,
1032-
'username' => 'testing',
1033-
// 他のキー
1034-
]
1035-
]
1036-
]);
1037-
$this->get('/articles/add');
1038-
1039-
$this->assertResponseOk();
1040-
// その他のアサーション
1041-
}
1042-
10431007
ステートレス認証と API のテスト
10441008
-------------------------------
10451009

ja/epub-contents.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
views
2121
orm
2222

23-
controllers/components/authentication
2423
core-libraries/caching
2524
bake
2625
console-commands

ja/pdf-contents.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Contents
2020
views
2121
orm
2222

23-
controllers/components/authentication
2423
core-libraries/caching
2524
bake
2625
console-commands

0 commit comments

Comments
 (0)