Skip to content

Commit db0f2bb

Browse files
committed
Integrate Respect/Fluent and Respect/FluentGen
Replace the in-house factory and codegen infrastructure with Fluent and FluentGen packages. The runtime now uses ComposingLookup with ComposableMap for prefix resolution via a FluentValidatorFactory adapter that preserves exception types. Validators use #[Composable] from Fluent instead of the custom #[Mixin] attribute. Mixin generation uses FluentGen, producing PrefixConstants in place of PrefixMap. The old src-dev/CodeGen directory is removed. All public APIs and BC are preserved.
1 parent ab992b4 commit db0f2bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+607
-986
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"php": ">=8.5",
2424
"php-di/php-di": "^7.1",
2525
"psr/container": "^2.0",
26+
"respect/fluent": "^1.0",
2627
"respect/string-formatter": "^1.7",
2728
"respect/stringifier": "^3.0",
2829
"symfony/polyfill-intl-idn": "^1.33",
@@ -43,6 +44,7 @@
4344
"psr/http-message": "^1.0 || ^2.0",
4445
"ramsey/uuid": "^4",
4546
"respect/coding-standard": "^5.0",
47+
"respect/fluentgen": "^1.0",
4648
"sebastian/diff": "^7.0",
4749
"sokil/php-isocodes": "^4.2.1",
4850
"sokil/php-isocodes-db-only": "^4.0",

composer.lock

Lines changed: 182 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-dev/CodeGen/Config.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

src-dev/CodeGen/FluentBuilder/MethodBuilder.php

Lines changed: 0 additions & 169 deletions
This file was deleted.

src-dev/CodeGen/FluentBuilder/Mixin.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)