Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要(Overview・Refs Issue)
#4623 のプログラム側の実装。
方針(Policy)
上記のロジックを一つの拡張にまとめただけのもの。
render
/path
/include_dispatch
の処理を利用するため、下記の3クラスに依存している。\Symfony\Bridge\Twig\Extension\HttpKernelRuntime
\Symfony\Bridge\Twig\Extension\RoutingExtension
\Eccube\Twig\Extension\TwigIncludeExtension
テスト(Test)
コントローラなし
の場合のユニットテストを追加。相談(Discussion)
コントローラあり
及びパラメータ付きコントローラあり
はテストケース内でうまく依存関係を解決できず、スキップとしてあります。いい方法があれば/(ご教授|テストを書き換えて)/uいただけると助かります。eccube_block_*
が既に存在するので、差別化のためにeccube_dynamic_block
という名前にしてあります。他に良い名前や、あるいはeccube_block
でも良いということであればお知らせ下さい。マイナーバージョン互換性保持のための制限事項チェックリスト
レビュワー確認項目