Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec57b10

Browse files
authored
Fix the XML configuration example for enums
There is no `type="enum"` in the XML file loader.
1 parent 9dfe9ed commit ec57b10

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
@@ -228,7 +228,7 @@ reusable configuration value. By convention, parameters are defined under the
228228
<parameter key="app.another_constant" type="constant">App\Entity\BlogPost::MAX_ITEMS</parameter>
229229
230230
<!-- Enum case as parameter values -->
231-
<parameter key="app.some_enum" type="enum">App\Enum\PostState::Published</parameter>
231+
<parameter key="app.some_enum" type="constant">App\Enum\PostState::Published</parameter>
232232
</parameters>
233233
234234
<!-- ... -->

0 commit comments

Comments
 (0)