@@ -702,9 +702,10 @@ public function fetchRecipes(array $operations, bool $reset): array
702
702
$ data = $ this ->downloader ->getRecipes ($ operations );
703
703
$ manifests = $ data ['manifests ' ] ?? [];
704
704
$ locks = $ data ['locks ' ] ?? [];
705
- // symfony/flex and symfony/framework-bundle recipes should always be applied first
705
+ // symfony/flex recipes should always be applied first
706
+ $ flexRecipe = [];
707
+ // symfony/framework-bundle recipe should always be applied first after the metapackages
706
708
$ recipes = [
707
- 'symfony/flex ' => null ,
708
709
'symfony/framework-bundle ' => null ,
709
710
];
710
711
$ metaRecipes = [];
@@ -748,6 +749,8 @@ public function fetchRecipes(array $operations, bool $reset): array
748
749
if (isset ($ manifests [$ name ])) {
749
750
if ('metapackage ' === $ package ->getType ()) {
750
751
$ metaRecipes [$ name ] = new Recipe ($ package , $ name , $ job , $ manifests [$ name ], $ locks [$ name ] ?? []);
752
+ } elseif ('symfony/flex ' === $ name ) {
753
+ $ flexRecipe = [$ name => new Recipe ($ package , $ name , $ job , $ manifests [$ name ], $ locks [$ name ] ?? [])];
751
754
} else {
752
755
$ recipes [$ name ] = new Recipe ($ package , $ name , $ job , $ manifests [$ name ], $ locks [$ name ] ?? []);
753
756
}
@@ -775,7 +778,7 @@ public function fetchRecipes(array $operations, bool $reset): array
775
778
}
776
779
}
777
780
778
- return array_merge ($ metaRecipes , array_filter ($ recipes ));
781
+ return array_merge ($ flexRecipe , $ metaRecipes , array_filter ($ recipes ));
779
782
}
780
783
781
784
public function truncatePackages (PrePoolCreateEvent $ event )
0 commit comments