Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony Flex recipes missing for 4.x branch #6631

Closed
lermontex opened this issue Sep 19, 2024 · 5 comments · Fixed by symfony/recipes#1339
Closed

Symfony Flex recipes missing for 4.x branch #6631

lermontex opened this issue Sep 19, 2024 · 5 comments · Fixed by symfony/recipes#1339

Comments

@lermontex
Copy link

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
Copy link
Member

soyuka commented Sep 20, 2024

We're on it, a few leftovers to fix this :) #6635 then we tag then we fix the recipe (pr is ready)

@DIOHz0r
Copy link

DIOHz0r commented Sep 26, 2024

Hi, when will this be released? I had the same issue and you did a release a few days ago but this was not included.

@dunglas
Copy link
Member

dunglas commented Sep 26, 2024

I opened the PR on Symfony repo: #6631

@lermontex
Copy link
Author

@dunglas, It works, thank you!

Please note that the api-platform/core package will be installed instead of api-platform/symfony

Perhaps we should also update the api-pack package?

https://packagist.org/packages/api-platform/api-pack

@dunglas
Copy link
Member

dunglas commented Sep 27, 2024

It's done: api-platform/api-pack#32

@dunglas dunglas closed this as completed Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants