2

After updating Symfony to 2.7 version it started to log DEPRECATED notices in the log. It is a good thing. And I want use the whole power of this feature.

But now it is very hard to find any deprecated notice related to my own bundle. Many of deprecations are from vendor folder. And I want to completely ignore vendor folder in this case. Then I will see messages related to my bundle only.

enter image description here

A.L
  • 10,259
  • 10
  • 67
  • 98
Michael Sivolobov
  • 12,388
  • 3
  • 43
  • 64
  • Check here - http://stackoverflow.com/questions/28850809/disable-deprecated-warning-in-symfony-2-7 – Sujata Halwai Jun 01 '15 at 11:26
  • @SujataHalwai, it is not the same. I want to ignore only **one folder**. Not the whole code. – Michael Sivolobov Jun 01 '15 at 11:31
  • The 3 first errors are linked to the Distribution bundle, did you changed `"sensio/distribution-bundle": "~2.3",` to `"sensio/distribution-bundle": "~3.0,>=3.0.12",` in your `composer.json` file? – A.L Jun 01 '15 at 12:09

1 Answers1

-2

Read http://symfony.com/doc/current/cookbook/upgrade/deprecation_warnings.html

Resume :

ini_set("error_reporting", E_ALL & ~E_USER_DEPRECATED);

EDIT

If you want to show only your deprecated Warning, you should try/catch the E_USER_DEPRECATED Warning and propagate it only if it's related to your bundle

Med
  • 2,035
  • 20
  • 31