Unable to use composer with symfony 2.0.x and v2.x_sf2.0 branch
I would like to use MopaBootstrapBundle for m symfony2.0.x project. I use composer and i have the following error message :
Problems:
- Problem caused by:
- Package "mopa/composer-bridge-9999999-dev" contains the rule mopa/composer-bridge requires symfony/console ([> 2.0.9999999.9999999, < 2.1.9999999.9999999]). Any of these packages satisfy the dependency: symfony/symfony-2.1.9999999.9999999-dev (alias of 9999999-dev), symfony/console-2.1.9999999.9999999-dev (alias of 9999999-dev).
- Package "mopa/bootstrap-bundle-dev-v2.x_sf2.0" contains the rule mopa/bootstrap-bundle requires mopa/composer-bridge (== 9999999-dev). Any of these packages satisfy the dependency: mopa/composer-bridge-9999999-dev.
- -symfony/symfony-2.0.13.0|-symfony/symfony-2.1.9999999.9999999-dev (alias of 9999999-dev)
- -symfony/console-2.1.9999999.9999999-dev (alias of 9999999-dev)|-symfony/symfony-2.0.13.0
- Install command rule (+mopa/bootstrap-bundle-dev-v2.x_sf2.0)
- Installation of package "mopa/bootstrap-bundle" with constraint == dev-v2.x_sf2.0 was requested. Satisfiable by packages [mopa/bootstrap-bundle-dev-v2.x_sf2.0].
- Install command rule (+symfony/symfony-2.0.13.0)
- Installation of package "symfony/symfony" with constraint == 2.0.13.0 was requested. Satisfiable by packages [symfony/symfony-2.0.13.0].
The problem is :
- symfony/symfony provide the 2.0 .13 version of symfony/console
- mopa/composer-bridge (required by mopa/bootstrap-bundle) require 2.1.* version of symfony/console
The solution would be to have a mopa/composer-bridge branch/version which work with symfony/console 2.0.13 and required by v2.x_sf2.0 branch.
The require section of my composer.json.
"require": {
"php": ">=5.3.2",
"symfony/symfony": "2.0.13",
"doctrine/orm": "2.1.6",
"twig/twig": "1.8.*",
"twig/extensions": "*",
"swiftmailer/swiftmailer": "4.1.7",
"symfony/assetic-bundle": "2.0.*",
"sensio/generator-bundle": "2.0.*",
"sensio/framework-extra-bundle": "2.0.*",
"sensio/distribution-bundle": "2.0.*",
"jms/security-extra-bundle": "1.1.*",
"behat/behat-bundle": "1.0.0",
"behat/mink-bundle": "dev-master",
"fabpot/goutte": "*",
"friendsofsymfony/user-bundle": "1.2.0",
"mopa/bootstrap-bundle": "dev-v2.x_sf2.0"
}
as I know composer is not compatible with symfony 2.0 you need to install it with deps file
You could use composer with symfony 2.0. Knplabs explains how on their blog : http://knplabs.fr/blog/symfony2-with-composer
I use composer and symfony 2.0 on many projects.
i adapted the version in composer bridge to rely on 2.* console, cause for 2.1 it doesnt matter.
Could you please try that on your 2.0 composer installation if the issue is fixed with that.
It's work : i can install package. Great thanks.
How do you configure Twitter Bootstrap in your composer.json?
I used that :
"repositories": [
{
"type": "package",
"package": {
"name": "twitter/bootstrap",
"version": "2.0.3",
"dist": {
"url": "http://twitter.github.com/bootstrap/assets/bootstrap.zip",
"type": "zip"
}
}
}
],
"require": {
"twitter/bootstrap": "2.0.3"
},
``