Skip to content

Commit d0cffd5

Browse files
committed
minor #20329 [Config] Fix the XML configuration example for enums (stof)
This PR was merged into the 6.4 branch. Discussion ---------- [Config] Fix the XML configuration example for enums There is no `type="enum"` in the XML file loader. The bad example was introduced in #17910. However, the issue it was fixing was about a change in Symfony for **PHP** config files only. The Yaml and XML file loaders don't have any dedicated syntax for enums (but of course, the Yaml component itself does, which is what is used in the Yaml example) Commits ------- 2f00687 Fix the XML configuration example for enums
2 parents b471e48 + 2f00687 commit d0cffd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ reusable configuration value. By convention, parameters are defined under the
232232
<parameter key="app.another_constant" type="constant">App\Entity\BlogPost::MAX_ITEMS</parameter>
233233
234234
<!-- Enum case as parameter values -->
235-
<parameter key="app.some_enum" type="enum">App\Enum\PostState::Published</parameter>
235+
<parameter key="app.some_enum" type="constant">App\Enum\PostState::Published</parameter>
236236
</parameters>
237237
238238
<!-- ... -->

0 commit comments

Comments
 (0)