I have set up symfony using composer.
I have added some dependancies in my composer .json file like so:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "2.0",
"sonata-project/admin-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/intl-bundle": "dev-master",
"sonata-project/user-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"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": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"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": "stable",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.3-dev"
}
}
}
When I run composer.phar update I get this message:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for sonata-project/intl-bundle dev-master -> satisfiable by sonata-project/intl-bundle[dev-master].
- sonata-project/intl-bundle dev-master requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 2
- sonata-project/intl-bundle dev-master requires ext-intl * -> the requested PHP extension intl is missing from your system.
- symfony/framework-standard-edition 2.3.x-dev requires sonata-project/intl-bundle dev-master -> satisfiable by sonata-project/intl-bundle[dev-master].
- Installation request for symfony/framework-standard-edition 2.3.x-dev -> satisfiable by symfony/framework-standard-edition[2.3.x-dev].
So not knowing any better I figure I may need to run composr.phar install which gives me this:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/framework-standard-edition 2.3.x-dev -> satisfiable by symfony/framework-standard-edition[2.3.x-dev].
- symfony/framework-standard-edition 2.3.x-dev requires sonata-project/admin-bundle dev-master -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.
Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
I have followed the instructions from sonata-project.org but am not making any progress.
Is there some sort of really obvious mistake I am making?
Here is a valid composer.json for setting up sonata-admin with symfony 2.3.*
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"twig/twig": "1.*",
"knplabs/knp-menu-bundle" : "1.1.*",
"sonata-project/block-bundle" : "dev-master",
"sonata-project/exporter" : "1.1.0",
"sonata-project/jquery-bundle" : "1.8.*",
"sonata-project/cache-bundle" : "dev-master",
"sonata-project/intl-bundle" : "dev-master",
"sonata-project/admin-bundle" : "dev-master",
"sonata-project/doctrine-orm-admin-bundle" : "dev-master",
},
Also you have to install INTL extension: http://php.net/manual/en/intl.setup.php
Related
I'm working on a project hosted on a private github. I'm cloning the repo and run composer install
I'm getting
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/symfony v2.7.38 -> satisfiable by symfony/symfony[v2.7.38].
- don't install symfony/var-dumper v3.3.6|don't install symfony/symfony v2.7.38
- Installation request for symfony/var-dumper v3.3.6 -> satisfiable by symfony/var-dumper[v3.3.6].
I'm not sure I understand what it means.
Here my composer.json
{
"name": "…",
"license": "…",
"type": "…",
"description": "…",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.4",
"symfony/symfony": "2.7.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~4.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"twig/extensions": "1.0.*",
"sonata-project/doctrine-orm-admin-bundle": "2.3.*",
"sonata-project/admin-bundle": "2.3.*",
"sonata-project/user-bundle": "2.2.*",
"sonata-project/media-bundle": "2.3.*",
"sonata-project/translation-bundle": "~1.0",
"friendsofsymfony/jsrouting-bundle": "^2.0#dev",
"friendsofsymfony/user-bundle": "1.3.*",
"stof/doctrine-extensions-bundle": "~1.2",
"doctrine/doctrine-migrations-bundle": "~1.1",
"richsage/rms-push-notifications-bundle": "dev-master",
"components/jquery": "2.1.1",
"ckeditor/ckeditor": "4.4.5",
"hwi/oauth-bundle": "0.3.*",
"guzzlehttp/guzzle": "~5.0",
"guzzlehttp/guzzle-services": "0.5.*",
"mixpanel/mixpanel-php" : "2.*",
"league/csv": "7.2.0",
"friendsofsymfony/rest-bundle": "^1.7",
"jms/serializer-bundle": "^1.1",
"appventus/alertify-bundle":"dev-master",
"dzunke/slack-bundle": "1.4.0",
"algolia/algolia-search-bundle": "~1.0",
"userscape/customerio": "^1.0",
"dubture/customerio-bundle": "^0.0.1",
"minube/amplitude-php": "dev-master",
"stripe/stripe-php": "^3.11",
"suncat/mobile-detect-bundle": "1.0.*",
"willdurand/js-translation-bundle": "^2.5",
"sentry/sentry-symfony": "^0.3.0",
"jms/di-extra-bundle": "dev-master",
"abraham/twitteroauth": "^0.7.1",
"gos/web-socket-bundle": "dev-master",
"phpoffice/phpexcel": "^1.8",
"nelmio/api-doc-bundle": "~2.11",
"liip/url-auto-converter-bundle": "dev-master",
"dizda/onesignal-api-bundle": "^0.1.5",
"slot/mandrill-bundle": "1.0.10"
},
"require-dev": {
"phpunit/phpunit": "4.8.*#stable",
"sensio/generator-bundle": "2.3.*",
"symfony/var-dumper": "3.3.6",
"doctrine/doctrine-fixtures-bundle": "^2.3",
"deployer/deployer": "^5.0"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"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": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"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": "stable",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.3-dev"
}
}
}
One of my coworker is doing the exact same thing and it's working. I would be really glad to get some explanations about the composer error that I don't understand at all.
Often issues that arise while comparing the run of a composer command, can be generated by the usage of different version.
As a lot of changes are made on each release (for example different glob sorting order, that gives different filepaths as well as slightly different regex to match version of the packages),
the best option is to compare your version to the one your peer is using by running a composer -v on your shell (check the link for more in depth examples and info), and as always i suggest to keep everyone aligned on the latest version by running a composer self-update if there aren't strict requirement that requires a lower version.
This looks like a simple issue, but I can't explain what's happening.
In composer.json for my Symfony project the twig version is specified as <2.0, to avoid breaking changes between v1 and v2. However, Composer installs the latest Twig version (2.4.3) anyway.
php c:\php\composer\composer.phar depends -t "twig/twig"
twig/twig v2.4.3 Twig, the flexible, fast, and secure template language for PHP
|--symfony/framework-standard-edition dev-develop (requires twig/twig <2.0)
|--symfony/symfony v2.8.24 (requires twig/twig ~1.34|~2.4)
| `--symfony/framework-standard-edition dev-develop (requires symfony/symfony 2.8.*)
`--twig/extensions v1.5.1 (requires twig/twig ~1.27|~2.0)
`--symfony/framework-standard-edition dev-develop (requires twig/extensions ^1.3)
Relevant chunk of composer.json:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.8.*",
"doctrine/dbal": "2.5.*",
"doctrine/orm": "2.5.*",
"doctrine/doctrine-bundle": "~1.2",
"twig/twig": "<2.0",
"twig/extensions": "^1.3",
etc
}
It looks to me like the requirements of the symfony/symfony and twig/extensions packages, combined with those of the project, would result in the highest possible 1.x version of Twig, 1.34.4, but that's not what happens. Why?
EDIT:
Composer 1.4.2
Full composer.json
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/", "SymfonyStandard": "app/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.8.*",
"doctrine/dbal": "2.5.*",
"doctrine/orm": "2.5.*",
"doctrine/doctrine-bundle": "~1.2",
"twig/twig": "<2.0",
"twig/extensions": "^1.3",
"symfony/assetic-bundle": "^2.8",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0",
"sensio/framework-extra-bundle": "~3.0",
"incenteev/composer-parameter-handler": "~2.0",
"beberlei/DoctrineExtensions": "^1.0",
"royopa/fpdf-symfony2": "^1.0",
"liuggio/excelbundle": "^2.0",
"patchwork/jsqueeze": "^2.0",
"leafo/scssphp": "^0.6.5",
"doctrine/doctrine-migrations-bundle": "^1.0",
"ocramius/proxy-manager": "~2.0.0",
"aws/aws-sdk-php-symfony": "^1.2"
},
"require-dev": {
"sensio/generator-bundle": "~2.3",
"symfony/phpunit-bridge": "^3.1",
"deployer/deployer": "^3.3"
},
"scripts": {
"post-root-package-install": [
"SymfonyStandard\\Composer::hookRootPackageInstall"
],
"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",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles"
],
"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",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.5-dev"
}
}
}
EDIT 2:
Deleting composer.lock and completely updating and reinstalling gives me what I thought I should get!
What version of composer are you using?
I tested that json file on a Linux Mint 17, with php 5.5 and composer 1.3.2 and the twig version installed is the right one (twig/twig - v1.34.4).
Can you try to paste your complete composer.json file?
Also, I suggest removing the composer.lock file and all the contents of the vendor folder and try the install again.
When I try to run command php composer.phar update it raise these error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sonata-project/admin-bundle dev-master requires sensio/generator- bundle ~2.3 -> no matching package found.
- sonata-project/admin-bundle dev-master requires sensio/generator- bundle ~2.3 -> no matching package found.
- Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
Here is my composer.json data:
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": {
"": "src/",
"Mobyt": "vendor/mobyt/mobyt/src/",
"EE": "vendor/ee/dataexporter-bundle/"
}
},
"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.*",
"symfony/console": "2.2.*#dev",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/data-fixtures" : "dev-master",
"friendsofsymfony/user-bundle": "*",
"doctrine/doctrine-migrations-bundle": "dev-master",
"doctrine/migrations": "dev-master",
"sonata-project/admin-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/intl-bundle": "2.1.*",
"sonata-project/cache-bundle": "2.*",
"sonata-project/block-bundle": "dev-master",
"sonata-project/easy-extends-bundle": "2.1.*",
"sonata-project/doctrine-extensions": "1.*",
"stof/doctrine-extensions-bundle": "~1.1#dev",
"friendsofsymfony/jsrouting-bundle": "~1.1",
"friendsofsymfony/advanced-encoder-bundle": "dev-master",
"knplabs/knp-menu-bundle":"1.1.x-dev",
"jms/serializer": "dev-master",
"sonata-project/user-bundle": "2.2.*#dev"
},
"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"
}
}
}
How can I fix this composer update issue?
You're using an outdated version of Symfony2: 2.2. The dev-master branch of sonata-project/admin-bundle requires the ~2.3 version of sensio/generator-bundle which is not available with Symfony 2.2. You should try the 2.2.x-dev version which requires the 2.2 version of sensio/generator-bundle. So you have to edit your composer.json file and replace:
"sonata-project/admin-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
With:
"sonata-project/admin-bundle": "2.2.*",
"sonata-project/doctrine-orm-admin-bundle": "2.2.*",
Since Im getting error messages about the icu version When running php composer.phar install, I have added this line below as said here:
"symfony/icu": "1.1.*",
So my composer.json is like this:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/icu": "1.1.*",
"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"ziiweb/frontendbundle": "#dev",
"friendsofsymfony/user-bundle": "~2.0#dev",
"sonata-project/admin-bundle": "dev-master",
"sonata-project/core-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/media-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"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": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"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": "stable",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.3-dev"
}
}
}
But after installing again, I get this errors:
Problem 1
- The requested package symfony/icu could not be found in any version, there may be a typo in the package name. Problem 2
- Installation request for symfony/framework-standard-edition 2.3.x-dev -> satisfiable by symfony/framework-standard-edition[2.3.x-dev].
- symfony/framework-standard-edition 2.3.x-dev requires symfony/icu 1.1.* -> no matching package found. Problem 3
- Installation request for symfony/symfony v2.3.8 -> satisfiable by symfony/symfony[v2.3.8].
- symfony/symfony v2.3.8 requires symfony/icu ~1.0 -> no matching package found. Problem 4
- symfony/symfony v2.3.8 requires symfony/icu ~1.0 -> no matching package found.
- sonata-project/media-bundle 2.2.x-dev requires symfony/symfony ~2.2 -> satisfiable by symfony/symfony[v2.3.8].
- Installation request for sonata-project/media-bundle 2.2.x-dev -> satisfiable by sonata-project/media-bundle[2.2.x-dev].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details
.
it is "symfony/Icu" with capital letter
You need to download the INTL extension of PHP.Go to http://pecl.php.net/get/intl-3.0.0.tgz
Tar that file, and compile it with the following commands.
tar zxvf intl-3.0.0.tgz
cd intl-3.0.0
/usr/bin/phpize
./configure --with-php-config=[YOUR OWN INSTALLED PHP DIRECTORY]/bin/php-config
Update your php.ini.
extension=intl.so
Restart your php server
By the way, if the problem still shows up after you finish above procedures, please check if you install that extension for PHP CLI. You know there are different php.ini files for PHP and PHP CLI sometimes.
what worked for me was deleting the composer.lock file, then do a composer install.
edit: I also deleted the vendor directory
The error message is:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/framework-bundle 2.0.7 requires symfony/translator 2.0.7 -> no matching package found.
[snip]
The composer version is d929a0813ae473272d151d9ebb2af7ebae451e48, with the following bundles installed:
antimattr/google-bundle dev-master 934add2
braincrafted/bootstrap-bundle dev-master v1.3.1
doctrine/common 2.3.x-dev bb0aebb
doctrine/data-fixtures dev-master eef10f6
doctrine/dbal 2.3.x-dev fd45c6f
doctrine/doctrine-bundle v1.2.0-beta1
doctrine/doctrine-fixtures-bundle dev-master 275540d
doctrine/doctrine-migrations-bundle dev-master 99c0192
doctrine/migrations dev-master e1f6efc
doctrine/orm 2.3.x-dev 304acf0
friendsofsymfony/comment-bundle dev-master 75d781e
friendsofsymfony/rest 0.8.0
friendsofsymfony/rest-bundle dev-master c334e61
friendsofsymfony/user-bundle dev-master 993eebf
gedmo/doctrine-extensions dev-master 0697ecc
hwi/oauth-bundle dev-master 461cdae
jdorn/sql-formatter v1.2.0
jms/aop-bundle 1.0.0
jms/cg 1.0.0
jms/di-extra-bundle 1.3.0
jms/metadata 1.2.0-RC
jms/parser-lib 1.0.0
jms/security-extra-bundle 1.4.0
jms/serializer 0.11.0
jms/serializer-bundle 0.11.0
jquery/jquery 1.9.1
kriswallsmith/assetic dev-master df03baa
kriswallsmith/buzz v0.7
leafo/lessphp dev-master 54bb805
monolog/monolog 1.4.0
ornicar/akismet-bundle dev-master 008cb45
phpcollection/phpcollection 0.2.0
phpoption/phpoption 1.1.0
psr/log 1.0.0
sensio/distribution-bundle v2.2.0
sensio/framework-extra-bundle v2.2.0
sensio/generator-bundle v2.2.0
swiftmailer/swiftmailer v4.3.0
symfony/assetic-bundle dev-master 6985b26
symfony/monolog-bundle v2.2.0
symfony/swiftmailer-bundle v2.2.0
symfony/symfony v2.2.0
twig/extensions dev-master 5c2d515
twig/twig dev-master bc30d9b
twitter/bootstrap v2.3.1
Googling for the error message mainly returns results containing the error message, but no solution, or pointer in the right direction...
It could be a coincidence, but this message started showing up after running a composer self-update
[edit]
My composer.json
{
"autoload": {
"psr-0": {
"": "src/"
}
},
"description": "The \"Symfony Standard Edition\" distribution",
"extra": {
"branch-alias": {
"dev-master": "2.2-dev"
},
"symfony-app-dir": "app",
"symfony-web-dir": "web"
},
"minimum-stability": "alpha",
"name": "symfony/framework-standard-edition",
"repositories": [
{
"package": {
"dist": {
"type": "file",
"url": "http://code.jquery.com/jquery-1.9.1.js"
},
"name": "jquery/jquery",
"version": "1.9.1"
},
"type": "package"
}
],
"require": {
"antimattr/google-bundle": "dev-master",
"braincrafted/bootstrap-bundle": "dev-master",
"doctrine/data-fixtures": "dev-master",
"doctrine/doctrine-bundle": "1.2.*",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master",
"doctrine/migrations": "dev-master",
"doctrine/orm": "~2.2,>=2.2.3",
"friendsofsymfony/comment-bundle": "2.*#dev",
"friendsofsymfony/rest-bundle": "0.*#dev",
"friendsofsymfony/user-bundle": "*",
"gedmo/doctrine-extensions": "master-dev",
"hwi/oauth-bundle": "*",
"jms/di-extra-bundle": "1.3.*",
"jms/security-extra-bundle": "1.4.*",
"jquery/jquery": "1.9.*",
"leafo/lessphp": "dev-master",
"ornicar/akismet-bundle": "dev-master",
"php": ">=5.3.3",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/monolog-bundle": "2.2.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/framework-bundle": ">=2.0,<=2.2-dev",
"symfony/symfony": "2.2.*",
"twig/extensions": "1.0.*",
"twitter/bootstrap": "2.3.*"
},
"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"
]
}
}
It will work if you replace in your composer.json:
"symfony/framework-bundle": ">=2.0,<=2.2-dev"
"hwi/oauth-bundle": "*"
With (for example):
"symfony/framework-bundle": "v2.2.0",
"hwi/oauth-bundle": "0.2.*#dev"
The 2 problems were:
"symfony/framework-bundle": ">=2.0,<=2.2-dev"
That requires:
symfony/translator: 2.0.7
But this one doesn't exist anymore...
And then
"hwi/oauth-bundle": "*"
because it needs:
symfony/framework-bundle: >=2.0,<2.2-dev
So your full composer.json will be:
{
"autoload": {
"psr-0": {
"": "src/"
}
},
"description": "The \"Symfony Standard Edition\" distribution",
"extra": {
"branch-alias": {
"dev-master": "2.2-dev"
},
"symfony-app-dir": "app",
"symfony-web-dir": "web"
},
"minimum-stability": "alpha",
"name": "symfony/framework-standard-edition",
"repositories": [
{
"package": {
"dist": {
"type": "file",
"url": "http://code.jquery.com/jquery-1.9.1.js"
},
"name": "jquery/jquery",
"version": "1.9.1"
},
"type": "package"
}
],
"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.*",
"antimattr/google-bundle": "dev-master",
"braincrafted/bootstrap-bundle": "dev-master",
"doctrine/data-fixtures": "dev-master",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master",
"doctrine/migrations": "dev-master",
"friendsofsymfony/comment-bundle": "2.*#dev",
"friendsofsymfony/rest-bundle": "0.*#dev",
"friendsofsymfony/user-bundle": "*",
"gedmo/doctrine-extensions": "master-dev",
"jquery/jquery": "1.9.*",
"leafo/lessphp": "dev-master",
"ornicar/akismet-bundle": "dev-master",
"twitter/bootstrap": "2.3.*",
"symfony/framework-bundle": "v2.2.0",
"hwi/oauth-bundle": "0.2.*#dev"
},
"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"
]
}
}
I have split up with spaces the different requirements as follow:
The standard Symfony 2.2
The extra bundles in your project
The ones that were causing the issue