I am trying to upgrade from Symfony 2.7 to 3.0. I made my code without obsolete and updated composer.json with new versions of packages according to this one . When I start the update using the command: composer update --with-dependencies symfony/symfony , this gives me an error, as follows:
Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package sensio/distribution-bundle == 4.0.4.0 could not be found. Problem 2 - The requested package sensio/generator-bundle == 2.5.3.0 could not be 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 <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
I do not know where these strange versions of these two packages come from. My composer.json looks like this:
{ "name": "symfony/framework-standard-edition", "license": "MIT", "type": "project", "description": "The \"Symfony Standard Edition\" distribution", "autoload": { "psr-0": { "": "src/", "SymfonyStandard": "app/" } }, "require": { "php": ">=5.5.9", "symfony/symfony": "3.0.*", "twig/extensions": "~1.0", "symfony/assetic-bundle": "~2.3", "symfony/swiftmailer-bundle": "~2.3", "symfony/monolog-bundle": "~2.8", "sensio/distribution-bundle": "~5.0", "sensio/framework-extra-bundle": "~3.0.2", "incenteev/composer-parameter-handler": "~2.0" }, "require-dev": { "sensio/generator-bundle": "~3.0" }, "scripts": { "post-root-package-install": [ "SymfonyStandard\\Composer::hookRootPackageInstall" ], "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", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles" ], "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", "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": "3.0-dev" }, "symfony-assets-install": "symlink" } }
I donβt see where I made a mistake, any suggestions?
Edit:
Running only composer update instead of composer update --with-dependencies symfony/symfony seems to solve the problem, all packages are updated successfully, after which it shows:
[RuntimeException] An error occurred when executing the "'cache:clear --no-warmup'" command: Fatal error: Class 'Symfony\Component\Console\Input\ArgvInput' not found in /home/wombat/htdocs/gugupanel/app/console on line 17