New in Symfony 3.3: Persisted deprecation logs
April 25, 2017
•
Published by
Javier Eguiluz
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
Contributed by
Thomas Perez and
Nicolas Grekas
in #21502.
Backward compatibility promise is one of the best features of Symfony. This promise ensures that your applications will always work when upgrading them using the same Symfony branch (e.g. an app using Symfony 3.0 will work when upgrading Symfony to 3.1, 3.2, 3.3 and 3.4).
The key of the backward compatibility promise are the deprecation messages. Whenever you use a feature that will be changed or removed in the next versions of Symfony, you get a log message warning you about this and providing alternative solutions. For example, this image shows the Web Debug Toolbar warning you about five deprecation messages:
![](https://c1.staticflickr.com/3/2807/34102778782_371075c024_o.png)
However, some of those deprecation messages are only generated during the compilation of the service container. That's why they disappear if you reload the page and they only appear again if you delete the cache to force a new compilation of the container.
In Symfony 3.3 we decided to fix this problem and now all deprecation messages are persisted. No matter if they were generated during the compilation phase or while serving the request. The Web Debug Toolbar and the Profiler now always display all the deprecation messages:
![](https://c1.staticflickr.com/3/2821/33876126070_0195e4d28b_b.jpg)
In addition to persisting the deprecation messages, Symfony 3.3 will also display the full logs generated during the compilation phase. You don't usually need to care about those messages, but they can help you with hard to debug issues:
![](https://c1.staticflickr.com/5/4159/33418431714_05d8b763af_b.jpg)
Help the Symfony project!
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
![Avatar of Stefan Rehbein](https://connect.symfony.com/api/images/6e644245-ebaa-45f2-b5b8-b181bb0d18e4.png?format=48x48)
![Avatar of Javier Eguiluz](https://connect.symfony.com/api/images/17170f22-52c0-4adf-a75d-29cb01d53176.png?format=48x48)
![Avatar of Michael COULLERET](https://connect.symfony.com/api/images/43bf58e8-b349-4e04-ad63-868c2795195b.png?format=48x48)
![Avatar of Plu Stéphan](https://connect.symfony.com/api/images/be841a92-d81b-47d6-ac09-3725b798c163.png?format=48x48)
![Avatar of Tito Miguel Costa](https://connect.symfony.com/api/images/4c908170-b2c9-4308-bbcb-e8a588d3e683.png?format=48x48)
![Avatar of Thomas BERTRAND](https://connect.symfony.com/api/images/cfe0bc5e-4fd7-4235-a22c-07d0a8ddad3a.png?format=48x48)
![Avatar of Quentin Fahrner](https://connect.symfony.com/api/images/24bdb420-8115-417f-85c0-55113b5c18ef.png?format=48x48)
![Avatar of Don Omondi](https://connect.symfony.com/api/images/3aa83dba-dcfd-439d-985e-1e27215ca86d.png?format=48x48)
![Avatar of ahmedsfny](https://connect.symfony.com/api/images/4797104e-1ae3-4cd8-a66c-6498814cf878.png?format=48x48)
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.