neilime / zf2-mobile-detect

ZF Mobile-Detect is a Zend Framework module that provides Mobile-Detect features
http://neilime.github.io/zf2-mobile-detect
MIT License
35 stars 12 forks source link

Requirement collision with RWOverdijk/AssetManager #6

Open jroedel opened 7 years ago

jroedel commented 7 years ago

Hi there,
I use rwoverdijk/assetmanager with my application, and since 2.0.0, there's a collision with the requirements of these two modules with the version of the event-manager. Assetmanager is one of the most used ZF2 modules, so it'd be nice if they're compatible.

Here is my composer.json require statement:

    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.*@stable",
        "rwoverdijk/assetmanager": "1.7.*",
        "neilime/zf2-mobile-detect": "dev-master"
    },

Here's the error message: Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for neilime/zf2-mobile-detect dev-master -> satisfiable by neilime/zf2-mobile-detect[dev-master].
    - Conclusion: don't install zendframework/zend-eventmanager 2.6.3
    - rwoverdijk/assetmanager 1.7.1 requires zendframework/zend-eventmanager ^2.6.3 || ^3.0.1 -> satisfiable by zendframework/zend-eventmanager[2.6.3, 3.0.1].
    - rwoverdijk/assetmanager 1.7.0 requires zendframework/zend-eventmanager ^2.6.3 || ^3.0.1 -> satisfiable by zendframework/zend-eventmanager[2.6.3, 3.0.1].
    - Conclusion: don't install zendframework/zend-eventmanager 3.0.1
    - Installation request for rwoverdijk/assetmanager 1.7.* -> satisfiable by rwoverdijk/assetmanager[1.7.0, 1.7.1].

Thanks for the code!

neilime commented 7 years ago

Hi,

I think it's not a problem between "rwoverdijk/assetmanager" & "neilime/zf2-mobile-detect". Your are using an old version of "zendframework" ("zendframework/zendframework": "2.*@stable"), when "neilime/zf2-mobile-detect" is requiring the last stable version of zend-mvc (3.0.3). My advice : you should upgrade your dependencies.

I'll try to supports old version of zendframework, but it will take some time.

jroedel commented 7 years ago

Ok, that could be. I should look for the time to migrate, but that's always a scary thing! Thanks for all your work for ZF, I also use your twb-bundle.