@@ -702,9 +702,10 @@ public function fetchRecipes(array $operations, bool $reset): array
702702 $ data = $ this ->downloader ->getRecipes ($ operations );
703703 $ manifests = $ data ['manifests ' ] ?? [];
704704 $ 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
706708 $ recipes = [
707- 'symfony/flex ' => null ,
708709 'symfony/framework-bundle ' => null ,
709710 ];
710711 $ metaRecipes = [];
@@ -748,6 +749,8 @@ public function fetchRecipes(array $operations, bool $reset): array
748749 if (isset ($ manifests [$ name ])) {
749750 if ('metapackage ' === $ package ->getType ()) {
750751 $ 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 ] ?? [])];
751754 } else {
752755 $ recipes [$ name ] = new Recipe ($ package , $ name , $ job , $ manifests [$ name ], $ locks [$ name ] ?? []);
753756 }
@@ -775,7 +778,7 @@ public function fetchRecipes(array $operations, bool $reset): array
775778 }
776779 }
777780
778- return array_merge ($ metaRecipes , array_filter ($ recipes ));
781+ return array_merge ($ flexRecipe , $ metaRecipes , array_filter ($ recipes ));
779782 }
780783
781784 public function truncatePackages (PrePoolCreateEvent $ event )
0 commit comments