php - Update Symfony 2.5.10 to 2.7.* -


hi want update project 2.5.10 2.7 can`t it. changed composer.json

... "symfony/symfony": "2.7.*", ... 

when executed composer update show me exception:

composer update loading composer repositories package information updating dependencies (including require-dev)

  [runtimeexception]   not load package monolog/monolog in http://packagist.org: [unexpectedvalueexception] not parse version constraint >=0.90 <3.0: invali   d version string "0.90 <3.0"         [unexpectedvalueexception]   not parse version constraint >=0.90 <3.0: invalid version string "0.90 <3.0"    update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress ] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesn] 

this composer.json file

{     "name": "symfony/framework-standard-edition",     "license": "mit",     "type": "project",     "description": "the \"symfony standard edition\" distribution",     "autoload": {         "psr-4": { "": "src/", "symfonystandard\\": "app/" }     },     "require": {         "php": ">=5.3.3",         "symfony/symfony": "2.7.*",         "doctrine/orm": "~2.2,>=2.2.3,<2.5",         "doctrine/dbal": "<2.5",         "doctrine/doctrine-bundle": "~1.4",         "twig/extensions": "~1.0",         "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,>=3.0.2",         "incenteev/composer-parameter-handler": "~2.0",         "friendsofsymfony/user-bundle" : "~2.0@dev",         "phpoffice/phpword": "dev-master",         "phpoffice/phpexcel": "dev-master"     },     "require-dev": {         "sensio/generator-bundle": "~2.3"     },     "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",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::preparedeploymenttarget"         ],         "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",             "sensio\\bundle\\distributionbundle\\composer\\scripthandler::preparedeploymenttarget"         ]     },     "config": {         "bin-dir": "bin"     },     "extra": {         "symfony-app-dir": "app",         "symfony-web-dir": "web",         "symfony-assets-install": "relative",         "incenteev-parameters": {             "file": "app/config/parameters.yml"         },         "branch-alias": {             "dev-master": "2.7-dev"         }     } } 

in file added changes , dont know correctly 100%

recently updated site symfony 2.7

first, missing comma i.e >=0.90, <3.0 should answer question.

second, best way upgrade download symfony standard distribution package , compare composer.json values because symfony version might not thing need upgrade.

third, , by-the-way, once updated 2.7 symfony site via composer update, got white screen no error logs thereafter. raised issue on github , apparently upgrading sensio distribution-bundle when have apc cache installed causing issue. restarting apache clears cache solved it.

happy coding!


Comments