How to avoid “knp_menu.factory” deprecation?
问题 I'm trying to use KNPMenuBundle with Sumfony 3.3 but I'm getting this annoying warning: Autowiring services based on the types they implement is deprecated since Symfony 3.3 and won't be supported in version 4.0. You should rename (or alias) the "knp_menu.factory" service to "Knp\Menu\FactoryInterface" instead. Trace: {..../vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php:344: } I did not set this knp_menu.factory at all, probably it was automatically