api-platform / core

The server component of API Platform: hypermedia and GraphQL APIs in minutes
https://api-platform.com
MIT License
2.41k stars 863 forks source link

Symfony Flex recipes missing for 4.x branch #6631

Open lermontex opened 1 day ago

lermontex commented 1 day ago

API Platform version(s) affected: 4.0.0

Description
When trying to install a new version according to the guide, you will get an error because there are no recipes for the 4.x branch on the server, and the 3.3 recipes are not compatible

How to reproduce

symfony new bookshop-api
cd bookshop-api
symfony composer require api

Possible Solution
Update Symfony Flex recipes

Additional Context

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!  In ArrayNode.php line 304:
!!                                                                              
!!    Unrecognized option "keep_legacy_inflector" under "api_platform". Available options are "asset_package", "collectio
!!    n", "defaults", "description", "docs_formats", "doctrine", "doctrine_mongodb_odm", "eager_loading", "elasticsearch"
!!    , "enable_docs", "enable_entrypoint", "enable_link_security", "enable_profiler", "enable_re_doc", "enable_swagger",
!!     "enable_swagger_ui", "error_formats", "exception_to_status", "formats", "graphql", "handle_symfony_errors", "http_
!!    cache", "inflector", "jsonschema_formats", "maker", "mapping", "mercure", "messenger", "name_converter", "oauth", "
!!    openapi", "patch_formats", "path_segment_name_generator", "resource_class_directories", "serializer", "show_webby",
!!     "swagger", "title", "use_symfony_listeners", "validator", "version".     
!!                                                                              
!!
!!
Script @auto-scripts was called via post-update-cmd
soyuka commented 1 day ago

We're on it, a few leftovers to fix this :) https://github.com/api-platform/core/pull/6635 then we tag then we fix the recipe (pr is ready)