Skip to content

Commit f0897ca

Browse files
committed
minor #21182 [Config] update enumClass to enumFqcn (IndraGunawan)
This PR was merged into the 7.3 branch. Discussion ---------- [Config] update enumClass to enumFqcn there is no `enumClass` method for `enumNode`, replaced to `enumFqcn` https://github.com/symfony/symfony/blob/7.3/src/Symfony/Component/Config/Definition/Builder/EnumNodeDefinition.php#L45-L54 Commits ------- a80ff31 update enumClass to enumFqcn
2 parents 6841060 + a80ff31 commit f0897ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/config/definition.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ The configuration can now be written like this::
186186
->end()
187187
;
188188

189-
You can also use the ``enumClass()`` method to pass the FQCN of an enum
189+
You can also use the ``enumFqcn()`` method to pass the FQCN of an enum
190190
class to the node. This will automatically set the values of the node to
191191
the cases of the enum::
192192

193193
$rootNode
194194
->children()
195195
->enumNode('delivery')
196-
->enumClass(Delivery::class)
196+
->enumFqcn(Delivery::class)
197197
->end()
198198
->end()
199199
;
@@ -203,7 +203,7 @@ to one of the enum cases if possible.
203203

204204
.. versionadded:: 7.3
205205

206-
The ``enumClass()`` method was introduced in Symfony 7.3.
206+
The ``enumFqcn()`` method was introduced in Symfony 7.3.
207207

208208
Array Nodes
209209
~~~~~~~~~~~

0 commit comments

Comments
 (0)