is backed by basecom. As a professional software service provider, basecom implements customized solutions in the areas of e-commerce, PIM solutions and web portals. With our experience and certified expertise, we have been one of the most renowned Symfony specialists in Germany for many years.
In PHP, backed enumerations are enumerations where all its elements are backed
by some scalar value. This makes them useful to restrict the possible values of
some routing parameter. In previous Symfony versions, you had to create the
requirements manually using public constants:
In Symfony 6.1, we’re improving the Routing component to fully support
\BackedEnum objects as follows:
When defining routes, there are some requirements that repeat on many projects.
For example, restricting some value to be an integer, or a date or a valid UUID
pattern. In Symfony 6.1 we’re introducing a
Requirement enumeration to
define all those common routing requirements so you can use them in your projects:
In PHP, variable identifiers can contain UTF-8 characters (e.g.
$iñtërnâtiónàlizætiøn = '...')
However, parameters in Symfony routes could only include ASCII characters.
In Symfony 6.1 we’re improving the Routing component to allow using UTF-8
characters in all route parameters: