Skip to content

Commit

Permalink
Fix the XML configuration example for enums
Browse files Browse the repository at this point in the history
There is no `type="enum"` in the XML file loader.
  • Loading branch information
stof authored Oct 15, 2024
1 parent 9dfe9ed commit ec57b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ reusable configuration value. By convention, parameters are defined under the
<parameter key="app.another_constant" type="constant">App\Entity\BlogPost::MAX_ITEMS</parameter>
<!-- Enum case as parameter values -->
<parameter key="app.some_enum" type="enum">App\Enum\PostState::Published</parameter>
<parameter key="app.some_enum" type="constant">App\Enum\PostState::Published</parameter>
</parameters>
<!-- ... -->
Expand Down

0 comments on commit ec57b10

Please sign in to comment.