File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 27
27
Application::bootstrap()
28
28
------------------------
29
29
30
- In addition to the **config/bootstrap.php ** file which should be used to
31
- configure low-level concerns of your application, you can also use the
32
- ``Application::bootstrap() `` hook method to load/initialize plugins, and attach
33
- global event listeners::
30
+ アプリケーションの低レベルな関心事を設定するために使用する **config/bootstrap.php ** ファイルに加えて、
31
+ プラグインのロードや初期化、グローバルイベントリスナーの追加のために ``Application::bootstrap() `` フックメソッドが利用できます::
34
32
35
33
// in src/Application.php
36
34
namespace App;
@@ -49,9 +47,8 @@ global event listeners::
49
47
}
50
48
}
51
49
52
- Loading plugins and events in ``Application::bootstrap() `` makes
53
- :ref: `integration-testing ` easier as events and routes will be re-processed on
54
- each test method.
50
+ ``Application::bootstrap() `` でプラグインとイベントをロードすると、イベントとルートが各テストメソッドで再処理されるので、
51
+ :ref: `integration-testing ` が簡単になります。
55
52
56
53
.. meta ::
57
54
:title lang=en: CakePHP Application
You can’t perform that action at this time.
0 commit comments