Closed ReyVolver closed 11 years ago
Hello there!
I'm not having this issue on my side, let's compare our composer.json if you want to. Here's mine on a random symfony2 project.
Maybe it's coming from the "minimum-stability": "dev" ?
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.0.*",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.1.*",
"symfony/monolog-bundle": "2.1.*",
"sensio/distribution-bundle": "2.1.*",
"sensio/framework-extra-bundle": "2.1.*",
"sensio/generator-bundle": "2.1.*",
"jms/security-extra-bundle": "dev-master",
"jms/di-extra-bundle": "dev-master",
"jms/serializer-bundle": "dev-master",
"ensepar/html2pdf-bundle": "dev-master",
"overblog/thrift-bundle": "v0.8.5",
"friendsofsymfony/rest-bundle": "dev-master",
"friendsofsymfony/jsrouting-bundle": "dev-master",
"behat/behat": "2.4.*@stable",
"behat/symfony2-extension": "*",
"behat/mink-extension": "*",
"behat/mink-browserkit-driver": "*",
"behat/mink-selenium2-driver": "*",
"behat/mink-goutte-driver": "*",
"vipsoft/doctrine-data-fixtures-extension": "*"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
}
Here's mine
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"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.*",
"ensepar/html2pdf": "dev-master",
"ensepar/html2pdf-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "alpha",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"branch-alias": {
"dev-master": "2.2-dev"
}
}
}
You're on minimum stability "alpha". What if you try to switch to "dev" ?
Working great. I haven't looking this, my bad.
But I don't understand why it's working with the add of "ensepar/html2pdf": "dev-master", which is dev right ?
Maybe because "minimum-stability" is overriden by a require that explicitly asks for a dev-master. So you explicitly load html2pdf-bundle and then it tries to implicitly load html2pdf and it fails because of the required minimum-stability.
I'm trying to make my composer sf2 project working with the "minimum-stability" flag set to "stable". How could I continue to use this bundle?
Thanks.
I created a stable release (as there is no reason not to do so). You can try with the following require :
"ensepar/html2pdf-bundle": "1.0.0"
If I use:
"ensepar/html2pdf-bundle": "1.0.0",
I've got:
Problem 1
- Removal request for ensepar/html2pdf == 9999999-dev
- ensepar/html2pdf-bundle 1.0.0 requires ensepar/html2pdf dev-master -> satisfiable by ensepar/html2pdf[dev-master].
- Installation request for ensepar/html2pdf-bundle 1.0.0 -> satisfiable by ensepar/html2pdf-bundle[1.0.0].
If I use:
"ensepar/html2pdf": "dev-master",
"ensepar/html2pdf-bundle": "1.0.0",
it works, but is it what you expected? It could be better if you create a 1.0.0 tag for the "ensepar/html2pdf" I suppose.
Yes I just tested it too on a sample composer.json and got the same issue. I made some changes to ensepar/html2pdf. It should works now.
Here is my composer.json used for tests:
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"require": {
"php": ">=5.3.3",
"ensepar/html2pdf-bundle": "1.0.0"
},
"minimum-stability": "stable"
}
And it runs fine with composer update.
thanks, it works fine now, you can close this issue!
Maybe it's me, but I need to add "ensepar/html2pdf": "dev-master" in "require".
I've added the changes in my README.md