@@ -84,7 +84,7 @@ public function __construct(
8484 $ this ->forceGeneration = is_string (getenv ('FORCE_GENERATION ' )) && strlen (getenv ('FORCE_GENERATION ' )) > 0 ;
8585
8686 $ this ->statusOutput = new StatusOutput (
87- ! (new CiDetector ())->isCiDetected (),
87+ false , // ! (new CiDetector())->isCiDetected(),
8888 new Step ('hash_current_spec ' , 'Hashing current spec ' , false ),
8989 new Step ('loading_state ' , 'Loading state ' , false ),
9090 new Step ('loading_spec ' , 'Loading spec ' , false ),
@@ -284,10 +284,8 @@ private function all(string $configurationLocation): iterable
284284 {
285285 $ schemaRegistry = new SchemaRegistry (
286286 $ 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 ,
291289 );
292290 $ schemas = [];
293291 $ throwableSchemaRegistry = new ThrowableSchema ();
@@ -726,6 +724,12 @@ private function subSplitClient(
726724
727725 $ this ->statusOutput ->itemForStep ('generating_schemas ' , count ($ schemas ));
728726 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+
729733 if ($ throwableSchemaRegistry ->has ($ schema ->className ->relative )) {
730734 yield from Schema::generate (
731735 $ this ->configuration ->subSplit ->subSplitsDestination . DIRECTORY_SEPARATOR . $ this ->splitPathPrefix ($ this ->configuration ->subSplit ->sectionPackage , 'common ' ) . $ this ->configuration ->destination ->source ,
@@ -737,14 +741,6 @@ private function subSplitClient(
737741 $ this ->configuration ->subSplit ->subSplitsDestination . DIRECTORY_SEPARATOR . $ this ->splitPathPrefix ($ this ->configuration ->subSplit ->sectionPackage , 'common ' ) . $ this ->configuration ->destination ->source ,
738742 $ schema ,
739743 );
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- );
748744 }
749745
750746 $ this ->statusOutput ->advanceStep ('generating_schemas ' );
0 commit comments