Closed FredoVelcro-zz closed 11 years ago
Same error for me...
Same here …
Same for me 0.9 version works
henrikbjorn/juno (0.4.0) replace jms/serializer: * so jms/serializer-bundle < 0.10 works, because it does not require jms/serializer (lib)
But where henrikbjorn/juno is coming from?
Closing as this is not related to this repository.
Sorry but in master branch, there is still a dependency with jms/serializer :
"require": {
"php": ">=5.3.2",
"jms/serializer": ">=0.11.0,<0.13-dev",
"symfony/framework-bundle": ">=2.1,<3.0-dev",
"jms/di-extra-bundle": "~1.3@alpha"
},
This is apparently caused by https://github.com/henrikbjorn/juno
If you somehow require this package either directly or indirectly, this might remove jms/serializer.
Find a solution : Add repository in your repositories section of your root composer.json : { "type" : "vcs", "url" : "https://github.com/schmittjoh/serializer.git" } Next add to require : "jms/serializer": "0.11.0" Then clean your composer cache (~/.composer/cache/), your vendors and composer.lock
This probably override packagist parameters for jms/serializer. This works for me (temporarly)
Edit : This works only if dependencies are installer via "composer update" instead of "composer install" .... Strange
How to know which package depends on "henrikbjorn/juno" ? my composer.json :
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"jms/security-extra-bundle": "1.4.*",
"jms/di-extra-bundle": "1.3.*",
"elao/web-profiler-extra-bundle": "dev-master",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/data-fixtures" : "dev-master",
"friendsofsymfony/user-bundle": "*",
"friendsofsymfony/jsrouting-bundle": "1.1.*",
"coresphere/console-bundle": "dev-master",
"mopa/bootstrap-bundle": "2.1.*@dev",
"hwi/oauth-bundle": "*",
"jms/serializer-bundle": "*"
}
it's the jms/serializer-bundle which depends of jms/serializer (normal) But the developer of https://github.com/henrikbjorn/juno has set "replace": { "jms/serializer" : "*" } in the composer.json file. With this composer replace all version of the serializer library with the package from henrikbjorn. This is a dangerous features, hope packagist will remove it.
The trick i proposed seems to solve the problem... it's ugly but it works.
OK, but where does "juno" come from ? who require it ???
jms/serializer-bundle require jms/serializer. And when you require jms/serializer, composer require henrikbjorn/juno for you because packagist tell it that henrikbjorn/juno replace jms/serializer. That's the problem.
The owner of the lib fix the problem, the issue is solved now.
When i ran "composer update" this morning, i saw this:
What's happening ??
NB : i use Symfony 2.2 and in my composer.json : "jms/serializer-bundle": "*"