8000 [FrameworkBundle] Deprecate "legacy_error_messages" form config node by HeahDude · Pull Request #47598 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] Deprecate "legacy_error_messages" form config node #47598

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 8000 src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CHANGELOG
`workflow.state_machine`
* Add `rate_limiter` configuration option to `messenger.transport` to allow rate limited transports using the RateLimiter component
* Remove `@internal` tag from secret vaults to allow them to be used directly outside the framework bundle and custom vaults to be added
* Deprecate "framework.form.legacy_error_messages" config node

6.1
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ private function addFormSection(ArrayNodeDefinition $rootNode, callable $enableI
->scalarNode('field_name')->defaultValue('_token')->end()
->end()
->end()
// to be deprecated in Symfony 6.1
->booleanNode('legacy_error_messages')->end()
->booleanNode('legacy_error_messages')
->setDeprecated('symfony/framework-bundle', '6.2')
->end()
->end()
->end()
->end()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

$container->loadFromExtension('framework', [
'http_method_override' => false,
'form' => [
'legacy_error_messages' => false,
],
'session' => [
'storage_factory_id' => 'session.storage.factory.native',
'handler_id' => null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

<framework:config http-method-override="false">
<framework:csrf-protection />
<framework:form legacy-error-messages="false" />
<framework:session storage-factory-id="session.storage.factory.native" />
</framework:config>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
<framework:config http-method-override="false">
<framework:csrf-protection field-name="_custom" />
<framework:session storage-factory-id="session.storage.factory.native" />
<framework:form legacy-error-messages="false" />
</framework:config>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

<framework:config http-method-override="false">
<framework:csrf-protection field-name="_custom_form" />
<framework:form legacy-error-messages="false" />
<framework:session storage-factory-id="session.storage.factory.native" />
</framework:config>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<framework:config http-method-override="false">
<framework:form enabled="true" legacy-error-messages="false" />
<framework:form enabled="true" />
<framework:session storage-factory-id="session.storage.factory.native" handler-id="null"/>
</framework:config>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<framework:config http-method-override="false">
<framework:form enabled="true" legacy-error-messages="false">
<framework:form enabled="true">
<framework:csrf-protection enabled="false" />
</framework:form>
</framework:config>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<framework:enabled-locale>fr</framework:enabled-locale>
<framework:enabled-locale>en</framework:enabled-locale>
<framework:csrf-protection />
<framework:form legacy-error-messages="false">
<framework:form>
<framework:csrf-protection field-name="_csrf"/>
</framework:form>
<framework:esi enabled="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
framework:
http_method_override: false
form:
legacy_error_messages: false
session:
storage_factory_id: session.storage.factory.native
handler_id: null
0