4.9 Other code updates¶
HTTP cache bundle now uses FOS Cache Bundle v2. If your code makes use of HTTP cache bundle, see the list of changes and deprecations.
Add the user checker to firewall by adding the following line to
1 2 3 4 5 6
ContainerAwareCommand class is not available in Symfony 5. Therefore, if your custom commands use
as a base class, you must rewrite them to use
Some permission choice loaders have been removed. If your code uses them, you must rewrite it to use the permission resolver.
Service container parameters¶
A number of Symfony service container parameters have been dropped.
Check if your code uses such invalid parameters: search for them by using the
ezpublish\..*\.class regular expression pattern.
When found, replace all the occurrences with fully-qualified class names.
If your code relies on automatically registering QueryTypes through the naming convention
you need to register your QueryTypes as services and tag them with
ezpublish.query, or enable their automatic configuration (
A number of Symfony namespaces have changed, and you must update your code if it uses them. For example, the following namespaces are now different:
For more information, search for removed classes in Symfony version 4.0 and version 5.0 documentation.
Make sure that your Apache/Nginx configuration is up to date with Symfony 5.
Refer to the provided
for an example.
Due to a number of compatibility breaks and deprecations introduced in eZ Platform v3.0, the changes that result from the above considerations might not be sufficient. Make sure that you review your code and account for all changes listed in Deprecations and backwards compatibility breaks.
Now, proceed to the next step, updating to v3.3.