简体   繁体   中英

Need help to clean/organize sonata-project dependencies in composer

I'm using the great sonata admin bundle on my projects. But for a few months, I got problems with the dependencies when updating using composer. I needed to change version declaration, but it keeps giving me errors.

I took a look on the sonata doc but it gives no help on versions.

So I'm asking here if someone could give me the correct configuration in the composer file to get all of sonata bundle working together.

Here is my composer.json

    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*",
    "doctrine/orm": ">=2.2.3,<2.4-dev",
    "doctrine/doctrine-bundle": "1.2.*",
    "twig/extensions": "1.0.*",
    "symfony/assetic-bundle": "2.3.*",
    "symfony/swiftmailer-bundle": "2.3.*",
    "symfony/monolog-bundle": "2.3.*",
    "sensio/distribution-bundle": "2.3.*",
    "sensio/framework-extra-bundle": "2.3.*",
    "sensio/generator-bundle": "2.3.*",
    "incenteev/composer-parameter-handler": "~2.0",
    "friendsofsymfony/user-bundle": "1.3.*",
    "sonata-project/admin-bundle": "2.2.*@dev",
    "sonata-project/block-bundle": "2.1.*@dev",
    "sonata-project/cache-bundle": "dev-master",
    "sonata-project/jquery-bundle": "1.8.*@dev",
    "sonata-project/easy-extends-bundle" : "dev-master",
    "sonata-project/intl-bundle" : "dev-master",
    "sonata-project/doctrine-orm-admin-bundle": "dev-master",
    "sonata-project/user-bundle": "dev-master",
    "sonata-project/media-bundle" : "dev-master",
    "genemu/form-bundle": "2.2.*",
    "winzou/console-bundle": "1.*",
    "knplabs/knp-menu-bundle": "~2.0@dev",
    "knplabs/knp-menu": "~2.0@dev"

My Symfony version is 2.3.8

Thanks in advance.

Here is working composer configuration for sonata bundles and Symfony 2.3.9 :

{
    "sonata-project/admin-bundle": "dev-master",
    "sonata-project/core-bundle": "~2.2@dev",
    "sonata-project/doctrine-orm-admin-bundle": "dev-master",
    "sonata-project/intl-bundle": "dev-master",
    "sonata-project/cache-bundle": "dev-master",
    "sonata-project/cache": "~1.0@dev",
    "sonata-project/block-bundle": "@dev",
    "sonata-project/jquery-bundle": "@dev",
    "sonata-project/doctrine-extensions": "1.0.0",
    "sonata-project/user-bundle": "dev-master",
    "sonata-project/easy-extends-bundle": "dev-master",
    "sonata-project/exporter": "1.3.*"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM