Skip to content

Pre-release 4.2.103 → 4.2.102 — task 4.3 config swap (illuminate/config v13) - #74

Draft
agissept wants to merge 1 commit into
pre-release/4.2.102from
pre-release/4.2.103
Draft

agissept wants to merge 1 commit into
pre-release/4.2.102from
pre-release/4.2.103

Conversation

@agissept

Copy link
Copy Markdown
Member

Task 4.3 (L2 per-unit): swap illuminate/config → ^13. Stacked di atas #73 (4.2.102 console).

Perubahan

  • composer: illuminate/config dari replace → require ^13 (v13.33.0).
  • v13 Config\Repository ctor (array $items) menggantikan L4.2 (LoaderInterface, $env). Foundation/start.php kini eager-load tiap config group ke array: union basename config/*.php + config/{env}/*.php, tiap group via FileLoader::load($env, $group) (env-cascade tetap terjaga).
  • FileLoader/LoaderInterface/EnvironmentVariables tetap fork-owned* — v13 config tak menyertakannya, PSR-4 seed-mechanism bikin fallback ke src/Illuminate/Config/.
  • Drop ConfigRepositoryTest (asserted removed fork internals: loader ctor, package(), addNamespace()). ConfigFileLoaderTest dipertahankan (FileLoader masih fork).
  • RoutingIntegrationTest::setUp: new Repository() (array ctor) ganti loader-mock.

Fork suite 586 hijau.

App matched-pair: dicoding#5912.

v13 Config\Repository ctor is (array $items) — the L4.2 (LoaderInterface, $env)
loader/env-cascade API is gone. Keep the fork FileLoader (falls back via PSR-4
seed mechanism; v13 config ships no loader) and eagerly load every config group —
base + env-cascade overlay — into the array at bootstrap.

- composer: illuminate/config self.version -> ^13.
- Foundation/start.php: build the pre-loaded array from FileLoader::load() per group
  (union of config/*.php and config/{env}/*.php basenames) -> new Repository($items).
- Drop ConfigRepositoryTest (asserted removed fork internals: loader ctor, package(),
  addNamespace()); ConfigFileLoaderTest kept (FileLoader still fork-owned).
- RoutingIntegrationTest setUp: new Repository() (array ctor) instead of loader mock.

Fork suite 586 green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@agissept agissept self-assigned this Sep 26, 2026
@agissept
agissept marked this pull request as draft September 26, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant