sonata AdminBlockServiceInterface deprecations for clear installation of symfony 2.8 + sonata 3.10

259 views Asked by At

I have clear installation of symfony 2.8 + fos user 2 + "sonata-project/admin-bundle": "^3.10" and see some strange deprecations

This class is deprecated since 3.2 and will be removed with the 4.0 release.Use Sonata\BlockBundle\Block\Block\Service\AdminBlockServiceInterface instead

log

Is it normal? Does anybody know can I fix or mute them?

2

There are 2 answers

1
greg0ire On

UPDATE : Your question is a duplicate of this one, ignore the rest of my answer, and update your sonata packages.

I think this is a bug, we probably forgot to remove the deprecated class (or is it an interface?) from the class cache. You should file a bug report. Also, we should obviously improve the deprecation message to indicate which class we are talking about. If you feel like it, submit a PR. I must say this issue feels very familiar to me, are you sure you are using the latest version of the block bundle?

2
Alvin Bunk On

Unless you are using version 4.0 of Symfony, just treat as a warning.