symfony - sylius/web-bundle with knplabs/knp-menu-bundle version 2 -


i need integrate sylius within existing symfony 2.4 project. project has list of dependencies, i've added sylius dependencies. works fine 1 dependency: knplabs/knp-menu-bundle used project 2.0.*@dev , bundle required sylius/web-bundle of version 1.1.*.

now when trying run composer install --prefer-dist gives conflict:

your requirements not resolved installable set of packages.  problem 1 - sylius/web-bundle 1.0.x-dev requires knplabs/knp-menu-bundle 1.1.* -> satisfiable knplabs/knp-menu-bundle[1.1.x-dev]. - sylius/web-bundle 1.0.x-dev requires knplabs/knp-menu-bundle 1.1.* -> satisfiable knplabs/knp-menu-bundle[1.1.x-dev]. - conclusion: don't install knplabs/knp-menu-bundle 1.1.x-dev - installation request sylius/web-bundle 1.0.*@dev -> satisfiable sylius/web-bundle[1.0.x-dev]. 

removing below explicit mention make composer work , checkout version 1.1 (as required web-bundle):

    "knplabs/knp-menu":                         "2.0.*@dev",     "knplabs/knp-menu-bundle":                  "2.0.*@dev", 

but, of course, gives me errors in application because original application requires logic version 2.

here entire composer.json: http://pastebin.com/v36jy93p

how best go fixing this? can somehow make sylius web bundle utilize knp-menu-bundle version 2?

probably main error use package of development stability. see on packagist.org, "knplabs/knp-menu-bundle" has had alpha release more 9 months ago, , development branches last commit week ago. don't know if can tell me something, think developers might see software not ready production use, , recommend using older 1.x version instead.

and if think true, same software these guys, "sylius/web-bundle", relies on older version, , complete fits picture. software's dependency hasn't been released in new version, there no need release software new package.

note previous versions of "sylius/web-bundle" depend on 2.0.*-dev version of "knplabs/knp-menu-bundle", wonder why stepped down version in later releases. triggered many problems tracing ongoing development lead no released software 9 months.

and general remark, i'd composer.json has way many "dev-master" , "@dev" versions included resolve stable bunch of dependencies.

but can do? aliasing "knplabs/knp-menu-bundle" version 1.1.x might help. might find out software dependencies destroy because of incompatible classes - in worst case, ever found out after pushed code production (you have tests find out, don't you).

you raise issue developers of "sylius/web-bundle" release version depends on 2.0.x-dev version of "knplabs/knp-menu-bundle".

another method clone "sylius/web-bundle" project, change line in composer.json depends on "knplabs/knp-menu-bundle", fix possible issued due change, create pull request original project change, , until happens, can include own repository instead of original 1 adding github url repositories section of composer.json.

you try persuade guys of "knplabs/knp-menu-bundle" tag release more packages able depend on new tag instead of not depending on development branch (doing break things unexpectedly, no-go if release stable software). , after once again trigger "sylius/web-bundle" try , use new version.

if else fails, last option: don't use "sylius/web-bundle". or don't use "knplabs/knp-menu-bundle" version 2.0.x-dev.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -