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.
The ExpressionLanguage component provides an engine that can compile and
evaluate expressions. The main purpose of this component is to use expressions
inside configuration for more complex logic. Its other purpose is to use it to
build business rule engines.
In Symfony 6.1 we’re improving the already rich ExpressionLanguage syntax
with more features.
In order to better align with the expressions supported in modern PHP code, you
can now define numbers using the following syntax:
First, we’ve added a new
?. operator which is equivalent to the PHP
null-safe operator. It prevents errors when trying to access a property or
method of an object that is null:
In addition to the null-safe operator, we’ve added three new operators (
starts with and
ends with) that allow to create very readable expressions:
These operators were already available in Twig templates, making ExpressionLanguage
component more in sync with Twig.