Skip to content

Commit 36947eb

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 36947eb

Some content is hidden

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

64 files changed

+540
-992
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",
@@ -48,6 +49,7 @@
4849
"sokil/php-isocodes-db-only": "^4.0",
4950
"squizlabs/php_codesniffer": "^4.0",
5051
"symfony/console": "^7.4 || ^8.0",
52+
"respect/fluentgen": "^1.0",
5153
"symfony/translation": "^8.0",
5254
"symfony/var-exporter": "^6.4 || ^7.0 || ^8.0"
5355
},

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/CodeGenerator.php

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

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)