@@ -484,9 +484,10 @@ public function fetchRecipes(array $operations, bool $reset): array
484
484
$ data = $ this ->downloader ->getRecipes ($ operations );
485
485
$ manifests = $ data ['manifests ' ] ?? [];
486
486
$ locks = $ data ['locks ' ] ?? [];
487
- // symfony/flex and symfony/framework-bundle recipes should always be applied first
487
+ // symfony/flex recipes should always be applied first
488
+ $ flexRecipe = [];
489
+ // symfony/framework-bundle recipe should always be applied first after the metapackages
488
490
$ recipes = [
489
- 'symfony/flex ' => null ,
490
491
'symfony/framework-bundle ' => null ,
491
492
];
492
493
$ metaRecipes = [];
@@ -530,6 +531,8 @@ public function fetchRecipes(array $operations, bool $reset): array
530
531
if (isset ($ manifests [$ name ])) {
531
532
if ('metapackage ' === $ package ->getType ()) {
532
533
$ metaRecipes [$ name ] = new Recipe ($ package , $ name , $ job , $ manifests [$ name ], $ locks [$ name ] ?? []);
534
+ } elseif ('symfony/flex ' === $ name ) {
535
+ $ flexRecipe = [$ name => new Recipe ($ package , $ name , $ job , $ manifests [$ name ], $ locks [$ name ] ?? [])];
533
536
} else {
534
537
$ recipes [$ name ] = new Recipe ($ package , $ name , $ job , $ manifests [$ name ], $ locks [$ name ] ?? []);
535
538
}
@@ -557,7 +560,7 @@ public function fetchRecipes(array $operations, bool $reset): array
557
560
}
558
561
}
559
562
560
- return array_merge ($ metaRecipes , array_filter ($ recipes ));
563
+ return array_merge ($ flexRecipe , $ metaRecipes , array_filter ($ recipes ));
561
564
}
562
565
563
566
public function truncatePackages (PrePoolCreateEvent $ event )
0 commit comments