このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
apricot:usage:ja:provider [2020/08/29 20:38] y2sunlight [Providerクラス] |
apricot:usage:ja:provider [2020/09/03 13:46] (現在) y2sunlight [Apricot サービスプロバイダー] |
||
---|---|---|---|
行 17: | 行 17: | ||
* [[apricot: | * [[apricot: | ||
* Apricot サービスプロバイダー | * Apricot サービスプロバイダー | ||
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
行 103: | 行 104: | ||
===== 使用例 ===== | ===== 使用例 ===== | ||
- | > TODO | + | スタブコントローラのindexアクションには、DIコンテナの使用例があります。 |
- | DIコンテナをテストするために、スタブコントローラを以下のように修正します。 | + | {{fa> |
- | + | ||
- | {{fa> | + | |
<code php StubController.php> | <code php StubController.php> | ||
public function index(int $no=null) | public function index(int $no=null) | ||
行 124: | 行 123: | ||
</ | </ | ||
- | * '' | + | '' |
- | * ユーザ数を表示するために、テンプレート変数 | + | |
\\ | \\ |