sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Knp\\Menu\\Silex\\RouterAwareFactory is deprecated #2151

Closed Filoz closed 10 years ago

Filoz commented 10 years ago

Hi, I'm getting this error in production:

PHP Deprecated:  Knp\\Menu\\Silex\\RouterAwareFactory is deprecated. Use Knp\\Menu\\Silex\\RoutingExtension instead. in /var/www/equiweb.org/site/vendor/knplabs/knp-menu/src/Knp/Menu/Silex/RouterAwareFactory.php on line 17, 

this is my composer:

"php" : ">=5.3.3",
        "symfony/symfony" : "~2.4",
        "doctrine/orm" : "~2.2,>=2.2.3",
        "doctrine/doctrine-bundle" : "~1.2",
        "twig/extensions" : "~1.0",
        "symfony/assetic-bundle" : "~2.3",
        "symfony/swiftmailer-bundle" : "~2.3",
        "symfony/monolog-bundle" : "~2.4",
        "sensio/distribution-bundle" : "3.0.*@dev",
        "sensio/framework-extra-bundle" : "~3.0",
        "sensio/generator-bundle" : "~2.3",
        "incenteev/composer-parameter-handler" : "~2.0",
        "gedmo/doctrine-extensions" : "dev-master",
        "sonata-project/core-bundle" : "dev-master",
        "sonata-project/admin-bundle" : "dev-master",
        "sonata-project/doctrine-orm-admin-bundle" : "dev-master",
        "stof/doctrine-extensions-bundle" : "1.1.*@dev",
        "sonata-project/intl-bundle" : "dev-master",
        "knplabs/knp-paginator-bundle" : "~2.4",
        "sonata-project/seo-bundle" : "dev-master",
        "friendsofsymfony/comment-bundle" : "dev-master",
        "anh/doctrine-extensions-taggable" : "~1.0",
        "sonata-project/media-bundle" : "dev-master",
        "egeloen/ckeditor-bundle" : "2.*",
        "nelmio/api-doc-bundle" : "@stable",
        "friendsofsymfony/oauth-server-bundle" : "dev-master",
        "symfony/icu" : "1.1.*",
        "sonata-project/formatter-bundle" : "dev-master",
        "knplabs/knp-menu" : "2.0.*@dev",
        "knplabs/knp-menu-bundle" : "2.0.*@dev",
        "mopa/bootstrap-bundle" : "dev-master",
        "jms/serializer-bundle": "dev-master",
        "nelmio/cors-bundle": "~1.0"

I searched and I found that the only bundle that requires Knp\Menu\Silex\RouterAwareFactory is sonata admin, sonata media and sonata seo.

Did I make something wrong?

Thankyou!

Filoz commented 10 years ago

Now it seems to work without change anything...