I've been using Symfony 2.2 for quite a while and recently decided to upgrade to 2.4.
After running a composer update I receive this error message. It seems that the framework isn't able to find 'setDispatcher()' method for an unknown reason.
./composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
....
Writing lock file
Generating autoload files
PHP Fatal error: Call to undefined method Symfony\Bundle\FrameworkBundle\Console\Application::setDispatcher() in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php on line 86
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
I've been searching a lot but couldn't find any similar issue.
Maybe someone has seen something like this before. Here is my composer.json. I think the problem could be related to this file.
{
"name": "my blogsoftware",
"description": "A Blog software distribution",
"license": "proprietary",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "~2.4",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"kriswallsmith/assetic": "1.1.*#dev",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~2.3",
"sensio/generator-bundle": "~2.3",
"symfony/console": "2.2.*#dev",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/data-fixtures" : "dev-master",
"friendsofsymfony/user-bundle": "2.0.*#dev",
"doctrine/doctrine-migrations-bundle": "2.1.*#dev",
"doctrine/migrations": "1.0.*#dev",
"sonata-project/core-bundle" : "2.2.*#dev",
"sonata-project/admin-bundle": "2.2.*#dev",
"sonata-project/doctrine-orm-admin-bundle": "2.2.*#dev",
"sonata-project/intl-bundle": "2.2.*#dev",
"sonata-project/cache-bundle": "2.1.*#dev",
"sonata-project/block-bundle": "2.2.*#dev",
"sonata-project/notification-bundle": "2.2.*#dev",
"simplethings/entity-audit-bundle": "dev-master",
"knplabs/knp-menu-bundle":"1.1.x-dev",
"vich/uploader-bundle": "dev-master",
"knplabs/knp-gaufrette-bundle": "0.2.*#dev",
"knplabs/gaufrette": "0.2.*#dev",
"genemu/form-bundle": "2.2.*#dev",
"eko/feedbundle": "1.1.*#dev",
"facebook/php-sdk": "3.2.0",
"friendsofsymfony/facebook-bundle": "dev-master",
"shark/simple_html_dom": "dev-master",
"incenteev/composer-parameter-handler": "2.1.*#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": "beta",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
}
}
Ok, I found out what produced the error. The console version was to old resulting in loading the wrong class producing the error above.
Replacing
"symfony/console": "2.2.*#dev",
with
"symfony/console": "2.5.*#dev",
solved the problem.
Related
I encountered this error while installing composer for my project.
Here is my composer.json
{
"name": "accessleader/project",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-0": {
"": "src/",
"SymfonyStandard": "app/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=5.4.26",
"symfony/symfony": "2.6.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "1.0.1",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"knplabs/knp-paginator-bundle": "dev-master",
"friendsofsymfony/user-bundle": "1.3.5",
"adesigns/calendar-bundle" : "dev-master",
"friendsofsymfony/jsrouting-bundle" : "1.5.4",
"liip/imagine-bundle" : "dev-master",
"jordillonch/crud-generator" : "dev-master",
"stof/doctrine-extensions-bundle": "~1.1#dev",
"kms/froala-editor-bundle": "dev-master",
"webfactory/exceptions-bundle" : "dev-master",
"lexik/translation-bundle": "~2.0",
"jms/i18n-routing-bundle": "dev-master",
"hwi/oauth-bundle": "dev-master",
"liuggio/excelbundle": "^2.0",
"a2lix/translation-form-bundle": "dev-master",
"besimple/i18n-routing-bundle": "dev-master",
"knplabs/doctrine-behaviors": "~1.1",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"unifik/database-config-bundle": "dev-master",
"beelab/recaptcha2-bundle": "^0.1.0",
"dario_swain/ds-recaptcha-bundle": "dev-master",
"avocode/form-extensions-bundle": "dev-master",
"gos/web-socket-bundle": "~1.0",
"knplabs/knp-snappy-bundle": "^1.4"
},
"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/DataBase/parameters.yml"
}
}
}
I am getting this error :
Problem 1
Installation request for twig/extensions 1.0.1 -> satisfiable by twig/extensions[v1.0.1].
avocode/form-extensions-bundle dev-master requires twig/extensions ~1.2 -> satisfiable by twig/extensions[1.4.x-dev].
Can only install one of: twig/extensions[v1.0.1, 1.4.x-dev].
Installation request for avocode/form-extensions-bundle dev-master -> satisfiable by avocode/form-extensions-bundle[dev-master].
You have pinned twig/extensions to version 1.0.1 but avocode/form-extension-bundle needs at least version 1.2 of the extensions to work. With a pinned version, other packages are not allowed to require a higher version.
"require":
"twig/extensions": "1.0.1",
In order to resolve the dependency conflict you should require a higher, non-fixed version (i.e. allow all versions up to, but not including v2.0) than the one that your new dependency needs like this:
composer require 'twig/extensions:~1.2'
Alternatively you can remove the explicit dependency with twig/extensions because it is already a dependency of your new package and will be installed together with this package anyways:
composer remove 'twig/extensions'
Afterwards install your desired bundle:
composer require 'avocode/form-extensions-bundle:dev-master'
Composer.json
{
"name": "go-get-me",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"require": {
"php": ">=5.5.9",
"symfony/symfony": "2.8.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~2.0#dev",
"sylius/flow-bundle": "^0.15.0",
"hwi/oauth-bundle": "^0.4.1",
"stripe/stripe-php": "^3.14",
"misd/phone-number-bundle": "^1.1",
"twig/extensions": "^1.3",
"php-http/guzzle6-adapter": "^1",
"payum/payum-bundle": "^2.1#dev",
"payum/paypal-express-checkout-nvp": "^1.3.3",
"pimax/fb-messenger-php": "dev-master",
"twilio/sdk": "^4.10",
"vresh/twilio-bundle": "^1.0",
"infusionsoft/php-sdk": "^1.2",
"hayageek/oauth2-yahoo": "^2.0",
"glifery/entity-hidden-type-bundle": "^1.2"
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7",
"doctrine/doctrine-fixtures-bundle": "^2.3",
"faisalman/simple-excel-php" : "0.3.*"
},
"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",
"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::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin",
"platform": {
"php": "5.5.9"
}
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
I am a newbie in symfony2. Here I am updating the required dependencies, Its shows an error, I am confused, do I need to take the clone of payum bundle or not? if yes then what must be the path? As My current path is /e/xampp/htdocs/nitu.dhaka/2016/subscription.
1/ Your problem one is that you required development a version of your libraries.
"payum/payum-bundle": "^2.1#dev",
You can lower your minimum-stability to dev, but you can have some unexpected behaviour since you will potentially accept to install some unstable versions of all packages. If you want still process add this line to your composer.json
"minimum-stability": "stable",
Please refer to https://getcomposer.org/doc/04-schema.md#minimum-stability for more information.
However, my advice is to use a non dev version of your packages, for example:
"payum/payum-bundle": "^2.1#dev",
could become
"payum/payum-bundle": "~2.1",
2/ A library of php is missing for some of your packages requires ext-intl *. In order to install it, please refer to https://stackoverflow.com/a/26308767/2377164
Ohh Finally Installation started, Following changed I have done:-
1. Configured ext-intl package by uncomment it from php.ini, that is in xampp/php/
2.And very important replace
payum/payum-bundle": "^2.1#dev", to "payum/payum-bundle": "^2.0",
"payum/paypal-express-checkout-nvp": "^1.3",
I thing there is a combination for
"payum/payum-bundle": "^2.0",
"payum/paypal-express-checkout-nvp": "^1.3",
This worked for me.
Thanks.
i'm trying to configure sonataUserBundle and fosUserBundle. when i try to access to my profile page , i got this error :
Attempted to call an undefined method named "setCurrentUri" of class "Knp\Menu\MenuItem".
Did you mean to call "setCurrent"?
In my composer.json in have this version of "knplabs/knp-menu-bundle": "~2.0",
I downgraded to version "knplabs/knp-menu-bundle": "~1.1". but when i tried to update composer i got a error that says :
Problem 1
- sonata-project/admin-bundle 2.4.x-dev requires knplabs/knp-menu-bundle >=2
.0,<3.0.0 -> no matching package found.
- sonata-project/admin-bundle 2.4.x-dev requires knplabs/knp-menu >=2.0,<3.0
-> no matching package found.
- Installation request for sonata-project/admin-bundle ~2.4#dev -> satisfiab
le by sonata-project/admin-bundle[2.4.x-dev].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further commo
n problems.
Someone have any idea how to solve this error ?
Call to method setCurrentUri fails in Symfony/SonataUserBundle setup
Thank you
{
"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.9",
"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.6.0",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"leafo/lessphp": "*",
"twitter/bootstrap": "*",
"mremi/contact-bundle": "dev-master",
"symfony/twig-bridge": "2.3.*",
"genemu/form-bundle": "2.2.*",
"components/jquery":"dev-master",
"friendsofsymfony/user-bundle": "~1.3",
"hwi/oauth-bundle": "0.4.*#dev",
"sonata-project/user-bundle": "2.2.4",
"sonata-project/core-bundle": "~2.3#dev,>=2.3.1",
"sonata-project/block-bundle": "~2.3#dev",
"sonata-project/page-bundle": "~2.3",
"symfony-cmf/routing-bundle": "~1.1",
"knplabs/knp-menu-bundle": "~2.0",
"sonata-project/admin-bundle": "~2.4#dev",
"sonata-project/doctrine-orm-admin-bundle": "~2.4#dev",
"sonata-project/easy-extends-bundle": "~2.1"
},
"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"
],
"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",
"symfony-assets-install": "relative",
"symfony-assets-install":"symlink",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.7-dev"
}
}
}
I had the same problem but downgrade to Knpmenu version 1 is not possible for our project. Because of some code update the June 16th, we can now use Sonata User Bundle and Knp Menu Version 2.
Please, have a look on my composer.json :
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/migrations": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master",
"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",
"friendsofsymfony/user-bundle": "~1.3",
"friendsofsymfony/message-bundle": "^1.2",
"sonata-project/admin-bundle": "^2.3",
"sonata-project/doctrine-orm-admin-bundle": "^2.3",
"sonata-project/easy-extends-bundle": "^2.1",
"sonata-project/user-bundle": "dev-master",
"sonata-project/datagrid-bundle": "dev-master",
"sonata-project/block-bundle": "~2.2,>=2.2.7,<2.3",
"sonata-project/exporter": "^1.4",
"sonata-project/intl-bundle": "^2.2",
"knplabs/knp-menu-bundle": "~2.0",
"knplabs/knp-menu": "~2.0"
},
As you can see, sonata-project/user-bundle is under dev-master version and I had to add sonata-project/datagrid-bundle in dev-master
Hope to help you !
hat versions of KnpMenu and SonataBlockBundle are you using? Please check your composer.json to be sure.
The setCurrentUri method has been deprecated as of KnpMenu v. 2.0, and the composer.json of SonataBlockBundle does not require KnpMenu anywhere but in dev install. So, this leads to a possibility that you could have required a fresher version of knplabs/knp-menu-bundle that is not yet supported by Sonata bundle.
Try requiring knplabs/knp-menu-bundle in 1.1.x:
{
...
"require": {
"knplabs/knp-menu-bundle": "~1.1"
},
...
}
Doctrine 2.4 has some interesting new features that I'd like to use in my current Symfony 2.3 project.
Is there a composer.json configuration to use doctrine 2.4 with Symfony? I can’t find a valid dependency list. If I specify the 2.4.3 version of doctrine/orm in my composer.json I get a composer update error because doctrine/doctrine-bundle does not allow a doctrine install > 2.3.
Doctrine 2.4 is mentioned in the Symfony2 docs but I haven't found a valid composer.json list.
Any help is appreciated.
Current composer.json
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Fraktl/EscapeWSSEAuthenticationBundle.git"
}
],
"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",
"stof/doctrine-extensions-bundle": "dev-master",
"friendsofsymfony/jsrouting-bundle": "~1.1",
"friendsofsymfony/rest-bundle": "dev-master",
"sprain/validator-bundle": "dev-master",
"willdurand/geocoder-bundle": "#stable",
"friendsofsymfony/user-bundle": "~2.0#dev",
"escapestudios/wsse-authentication-bundle": "2.3.x-dev",
"jms/serializer-bundle": "dev-master",
"doctrine/doctrine-fixtures-bundle": "2.2.*",
"luxifer/doctrine-functions": "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"
]
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
}
composer.json:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": "2.4.*",
"doctrine/doctrine-bundle": "~1.2",
....
Then update your dependencys
$ composer update doctrine\orm
But ! im not sure, if it is supported because the symfony master is using the same version since 2.3 (symfony 2.5 composer.json)
"require": {
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
I am trying to upgrade from Symfony2.1.7 to Symfony2.3 stable release. I am using php composer.phar update But I am facing package dependency problems. Below is link to my composer.json and the command line output.
composer.json And command line output
After looking at the output I can see friendsofsymfony/user-bundle dependency
friendsofsymfony/user-bundle 2.0.x-dev requires symfony/security-bundle >=2.1,<2.3-dev
And something similar for sonata-project/user-bundle
- symfony/framework-standard-edition 2.3.x-dev requires sonata-project/user-bundle dev-master -> satisfiable by sonata-project/user-bundle[dev-master].
- sonata-project/user-bundle dev-master requires friendsofsymfony/user-bundle 1.3.* -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2].
- sonata-project/user-bundle dev-master requires friendsofsymfony/user-bundle 1.3.* -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2].
So seems it needs symfony/security-bundle >=2.1,<2.3-dev but I want it to be 2.3 or above is it like I can not upgrade with these bundle.
Can someone guide me in right direction, If I am missing something?
Here is my complete composer.json which works with Symfony version 2.3.2-DEV - app/dev/debug
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": {
"": "src/"
}
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*#dev",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "dev-master",
"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",
"jms/security-extra-bundle": "1.5.*",
"jms/di-extra-bundle": "1.4.*",
"kriswallsmith/assetic": "1.1.*#dev",
"mlehner/gelf-php": "v1.0",
"doctrine/migrations": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master",
"stof/doctrine-extensions-bundle": "1.1.*#dev",
"sensiolabs/doctrine-query-statistics-bundle": "1.0.*#dev",
"jms/serializer-bundle": "0.9.x",
"sonata-project/jquery-bundle": "1.8.*#dev",
"sonata-project/exporter": "1.1.*",
"sonata-project/admin-bundle": "2.2.*#dev",
"sonata-project/cache-bundle": "2.1.*#dev",
"sonata-project/intl-bundle": "2.2.*#dev",
"sonata-project/doctrine-orm-admin-bundle": "2.2.*#dev",
"sonata-project/cache-bundle": "dev-master",
"sonata-project/easy-extends-bundle": "dev-master",
"sonata-project/user-bundle": "2.2.*#dev",
"sonata-project/block-bundle": "dev-master",
"sonata-project/markitup-bundle": "dev-master",
"sonata-project/formatter-bundle": "dev-master",
"sonata-project/doctrine-extensions": "1.0.0",
"friendsofsymfony/user-bundle": "1.3.*#dev",
"knplabs/knp-paginator-bundle": "dev-master",
"liip/monitor": "0.5.*#dev",
"liip/monitor-bundle": "0.5.*#dev",
"mockery/mockery": "0.7.2",
"aws/aws-sdk-php": "2.0.3",
"zendframework/zend-barcode": "2.0.*",
"zendframework/zend-validator": "2.0.*",
"egulias/listeners-debug-command-bundle": "*",
"kylecannon/easycsv": "dev-master",
"predis/predis": "0.8.*#dev"
},
"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.2-dev",
"dev-master": "2.3-dev"
}
}
}