Repeatable advice attributes (several advices on one aspect method)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start from the advice attribute classes (#[Before]/#[After]/#[Around]/#[AfterThrowing]) and the check that rejects a second attribute on one method. Advisors and generated code key off the method id, so trace where AdvisorCacheCompiler assigns ids and where The::advice() resolves them. Make the attributes Attribute::IS_REPEATABLE, give each advisor an id of method id plus attribute index or kind, bump AdvisorCacheCompiler::VERSION, then add tests weaving two attributes of the same and of different kinds from one method.
索引モデルが issue の本文から書いたものです。
説明
Follow-up to #681.
In 4.0 an aspect method carries at most one advice attribute (#[Before], #[After], #[Around], #[AfterThrowing]). A second one fails with an AspectException naming the method.
Feature
Allow several advice attributes on one method, e.g.:
#[Before('execution(public App\Foo->*(*))')]
#[Before('execution(public App\Bar->*(*))')]
public function audit(MethodInvocation $invocation): void {}
What it needs
- Declare the advice attributes
Attribute::IS_REPEATABLE. - Give each advisor its own stable id, e.g. the method id plus the attribute index or kind. Generated code and the advisor cache currently use the method id as the unique key, so the id scheme,
The::advice()lookups and the cache format all need to follow. - Bump
AdvisorCacheCompiler::VERSION. - Tests: two attributes of the same kind, and two of different kinds, on one method.
- 主要言語
- PHP
- スター
- 1.7k
- フォーク
- 166
- 平均マージ
- 10時間
- マージ済み PR(30日)
- 35
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
goaop/framework のほかの issue
-
Enhancement Performance
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
goaop/framework#747 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Performance: INTERCEPT_INCLUDES serves untransformed included files through php://filter in production (no opcache)対応中かも @lisachenko が 1 日前に担当しました。 オープンEnhancement Performance
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
メンテナーはふだん 1 日以内に返信
-
Enhancement Performance To Be Discussed
難易度 3/5 半日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
Bug Known Issue
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
goaop/framework#696 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
メンテナーはふだん 1 日以内に返信
goaop/framework の issue をすべて見る
似ている issue
-
📚 Documentation: Placeholder link `link-to-realtime-docs` in Flutter SDK changelog対応中かも @ShyneChikwapulo が今日担当しました。 オープンapi / realtime product / auth product / messaging product / vcs
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
appwrite/appwrite#14272 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
Boavizta/boaviztapi#580 · コメント 1 件 ·
-
Add Prestashopオープンrequest
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
endoflife-date/endoflife.date#11303 ·
メンテナーはふだん 1 日以内に返信
-
0. to triage enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信