feat(support): promote Macroable + add Conditionable & Pipeline (task 3.2) - #36
Open
agissept wants to merge 1 commit into
Open
Conversation
… 3.2)
Wave 3.2 dari roadmap framework-first (blocked-by 3.1 Contracts).
Drop-in verbatim dari referensi Laravel 13 (v13.30.1) — memutus
langkah berikutnya yang butuh idiom `->when()` / `::macro()` L13.
- Macroable (Support\Traits\Macroable): signature L13 (mixin/flushMacros,
Closure bind ke instance/kelas). `MacroableTrait` jadi alias
backward-compatible (`use Macroable`) → 8 konsumen fork tak putus.
- Conditionable (when/unless) + HigherOrderWhenProxy — trait fondasi baru,
tak ada di 4.2.
- Pipeline (send/through/via/then/thenReturn/...) + Hub +
PipelineServiceProvider + Contracts\Pipeline\{Pipeline,Hub}. Inert sampai
konsumen (Router/Kernel/Bus/Queue) direshape di wave berikutnya.
- Contracts\Support\DeferrableProvider (marker) — dibutuhkan provider.
Test: tests/Support/SupportMacroableConditionablePipelineTest.php (5).
Full suite hijau; convergence-ratchet lolos.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
agissept
force-pushed
the
migration/3.1-contracts
branch
from
September 11, 2026 08:46
a95b048 to
2fceccb
Compare
agissept
force-pushed
the
migration/3.2-macroable-conditionable-pipeline
branch
from
September 11, 2026 08:46
34b4ec2 to
428cba6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Wave 3.2 roadmap framework-first (
blocked-by: 3.1Contracts, PR #35 — base PR ini di-stack di atas #35, retarget kemastersetelah #35 merge).Tujuan: sediakan idiom fondasi L13 yang dibutuhkan wave berikutnya. Drop-in verbatim dari referensi Laravel 13 (
v13.30.1) — nol logika baru buatan sendiri.Isi
Macroable(Support\Traits\Macroable) — signature L13:mixin(),flushMacros(), Closure di-bind ke instance/kelas di__call/__callStatic.MacroableTraitjadi alias backward-compatible (use Macroable) → 8 konsumen fork (Str,Arr,Cache\Repository,HtmlBuilder,FormBuilder, facadeResponse, …) tak putus.Conditionable(when/unless) +HigherOrderWhenProxy— trait fondasi baru, tak ada di 4.2.Pipeline(send/through/via/then/thenReturn/pipe/finally/withinTransaction/setContainer) +Hub+PipelineServiceProvider+Contracts\Pipeline\{Pipeline,Hub}.Contracts\Support\DeferrableProvider(marker) — dibutuhkan provider.Catatan
PipelineServiceProviderbelum diregister di mana pun (tak ada perubahan perilaku runtime).MacroableTrait(alias), bukan dimigrasi keMacroable. Itu memang fungsi shim: migrasi callsite bertahap; ratchetmacroable_traitmencegah pemakaian baru.Illuminate\*, autoload PSR-4 sudah cover.Verifikasi
tests/Support/SupportMacroableConditionablePipelineTest.php(5 test — Macroable + alias, when/unless, Pipeline + contract).🤖 Generated with Claude Code