10000 [RFC] Shrink recipes for v7 · Issue #51097 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[RFC] Shrink recipes for v7 #51097

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

Closed
nicolas-grekas opened this issue Jul 25, 2023 · 1 comment · Fixed by #51325 or #51357
Closed

[RFC] Shrink recipes for v7 #51097

nicolas-grekas opened this issue Jul 25, 2023 · 1 comment · Fixed by #51325 or #51357
Labels
Help wanted Issues and PRs which are looking for volunteers to complete them. RFC RFC = Request For Comments (proposals about features that you want to be discussed)

Comments

@nicolas-grekas
Copy link
Member
nicolas-grekas commented Jul 25, 2023

Over time, recipes grow in size. For example, the recipe for 6.2 added the handle_all_throwables option to turn it on by default.

It'd be great to shrink recipes by making v7 defaults to the values we have currently in the recipes.

Here is the current config file for framework-bundle v7:
https://github.com/symfony/recipes/blob/main/symfony/framework-bundle/7.0/config/packages/framework.yaml

Let's deprecate not setting all/most of those options and shrink the recipe.
Let's review the other recipes also as part of the same effort.

Feedback and Help Wanted for the implementations.

@carsonbot carsonbot added the RFC RFC = Request For Comments (proposals about features that you want to be discussed) label Jul 25, 2023
@nicolas-grekas nicolas-grekas added the Help wanted Issues and PRs which are looking for volunteers to complete them. label Jul 25, 2023
@derrabus
Copy link
Member
A165

Low-hanging fruit: symfony/recipes#1225 😇

nicolas-grekas added a commit that referenced this issue Aug 17, 2023
…uid, validation) (Jean-Beru)

This PR was merged into the 6.4 branch.

Discussion
----------

[FrameworkBundle] Deprecate not setting some options (uid, validation)

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | yes
| Tickets       | Fix #51097
| License       | MIT
| Doc PR        |

This PR deprecates not setting 4 options in framework configuration to match the v7.0 recipe:
* `uid.default_uuid_version` which is `6` by default and is set to `7` by recipe
* `uid.time_based_uuid_version`  which is `6` by default and is set to `7` by recipe
* `validation.email_validation_mode` which is `null` by default and is set to `html5` by recipe

See #51097.

Commits
-------

aa3fbc5 [FrameworkBundle] Deprecate not setting some options (uid, validation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted Issues and PRs which are looking for volunteers to complete them. RFC RFC = Request For Comments (proposals about features that you want to be discussed)
Projects
None yet
3 participants
0