@@ -84,7 +84,7 @@ public function __construct(
84
84
$ this ->forceGeneration = is_string (getenv ('FORCE_GENERATION ' )) && strlen (getenv ('FORCE_GENERATION ' )) > 0 ;
85
85
86
86
$ this ->statusOutput = new StatusOutput (
87
- ! (new CiDetector ())->isCiDetected (),
87
+ false , // ! (new CiDetector())->isCiDetected(),
88
88
new Step ('hash_current_spec ' , 'Hashing current spec ' , false ),
89
89
new Step ('loading_state ' , 'Loading state ' , false ),
90
90
new Step ('loading_spec ' , 'Loading spec ' , false ),
@@ -284,10 +284,8 @@ private function all(string $configurationLocation): iterable
284
284
{
285
285
$ schemaRegistry = new SchemaRegistry (
286
286
$ this ->configuration ->namespace ,
287
- false ,
288
- false ,
289
- // $this->configuration->schemas->allowDuplication ?? false,
290
- // $this->configuration->schemas->useAliasesForDuplication ?? false,
287
+ $ this ->configuration ->schemas ->allowDuplication ?? false ,
288
+ $ this ->configuration ->schemas ->useAliasesForDuplication ?? false ,
291
289
);
292
290
$ schemas = [];
293
291
$ throwableSchemaRegistry = new ThrowableSchema ();
@@ -726,6 +724,12 @@ private function subSplitClient(
726
724
727
725
$ this ->statusOutput ->itemForStep ('generating_schemas ' , count ($ schemas ));
728
726
foreach ($ schemas as $ schema ) {
727
+ yield from Schema::generate (
728
+ $ this ->configuration ->subSplit ->subSplitsDestination . DIRECTORY_SEPARATOR . $ this ->splitPathPrefix ($ this ->configuration ->subSplit ->sectionPackage , 'common ' ) . $ this ->configuration ->destination ->source ,
729
+ $ schema ,
730
+ [...$ schemaRegistry ->aliasesForClassName ($ schema ->className ->relative )],
731
+ );
732
+
729
733
if ($ throwableSchemaRegistry ->has ($ schema ->className ->relative )) {
730
734
yield from Schema::generate (
731
735
$ this ->configuration ->subSplit ->subSplitsDestination . DIRECTORY_SEPARATOR . $ this ->splitPathPrefix ($ this ->configuration ->subSplit ->sectionPackage , 'common ' ) . $ this ->configuration ->destination ->source ,
@@ -737,14 +741,6 @@ private function subSplitClient(
737
741
$ this ->configuration ->subSplit ->subSplitsDestination . DIRECTORY_SEPARATOR . $ this ->splitPathPrefix ($ this ->configuration ->subSplit ->sectionPackage , 'common ' ) . $ this ->configuration ->destination ->source ,
738
742
$ schema ,
739
743
);
740
- } else {
741
- $ aliases = [...$ schemaRegistry ->aliasesForClassName ($ schema ->className ->relative )];
742
-
743
- yield from Schema::generate (
744
- $ this ->configuration ->subSplit ->subSplitsDestination . DIRECTORY_SEPARATOR . $ this ->splitPathPrefix ($ this ->configuration ->subSplit ->sectionPackage , count ($ aliases ) > 0 ? 'common ' : $ sortedSchemas [$ schema ->className ->relative ]['section ' ]) . $ this ->configuration ->destination ->source ,
745
- $ schema ,
746
- $ aliases ,
747
- );
748
744
}
749
745
750
746
$ this ->statusOutput ->advanceStep ('generating_schemas ' );
0 commit comments