Closed alamirault closed 2 days ago
Requirement Enum values are not cases but constants.
So in YAML routing format we must use !php/const instead of !php/enum.
!php/const
!php/enum
This PR add examples to how to use the "Requirement enum"
Can you confirm constants are not supported in XML format for routing ? (if not, maybe we can make PR like https://github.com/symfony/symfony/pull/58035 cc @alexandre-daubois)
Yes, this is a bit confusing. But your example will make things much more clear. Thanks Antoine!
Requirement Enum values are not cases but constants.
So in YAML routing format we must use
!php/const
instead of!php/enum
.This PR add examples to how to use the "Requirement enum"
Can you confirm constants are not supported in XML format for routing ? (if not, maybe we can make PR like https://github.com/symfony/symfony/pull/58035 cc @alexandre-daubois)