-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self link #293
Self link #293
Conversation
If the Page resource uses the value of the App resource as is.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 1.x #293 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 501 504 +3
===========================================
Files 83 83
Lines 1335 1346 +11
===========================================
+ Hits 1335 1346 +11 ☔ View full report in Codecov by Sentry. |
codeも移すべきでしょうか? |
WalkthroughThe update involves refining the Changes
Poem
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (5)
Files skipped from review as they are similar to previous changes (5)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@jingu @NaokiTsuchiya Gentle reminder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
通常時
通常
#[Embed(rel: "foo", src: "app://self/bar")]
のアトリビュートだと
$this->body['foo']
にapp://self/bar
Requestオブジェクトがアサインされます。提案
それに対して
rel
で自己リンク_self
を指定すると#[Embed(rel: "_self", src: "app://self/bar")]
自身のリソースのbodyが
src
で指定したリソースになります。通常の場合と違ってリクエストオブジェクトではなく、即実行されてその結果が代入されます。ユースケース
appリソースと同じ値をpageリソースに代入したい時
モチベーション
検討点
リンクの
self
とは関係がありません。これと混同しないか。Summary by CodeRabbit
New Features
Bug Fixes
Tests
Refactor