Problem with Symfony 5 Upgrade and stof/doctrine-extensions-bundle [duplicate] - php

This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed 1 year ago.
I am having troubles upgrading my Symfony project from 4.4. to 5.0. I already removed all depreciations and so forth and am now trying to upgrade via composer.
When I run composer update "symfony/*" I get the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove stof/doctrine-extensions-bundle v1.6.0
- Conclusion: don't install stof/doctrine-extensions-bundle v1.6.0
- Conclusion: don't install symfony/console v5.0.11
- Conclusion: don't install symfony/console v5.0.10
- Conclusion: don't install symfony/console v5.0.9
- Conclusion: don't install symfony/console v5.0.8
- Conclusion: don't install symfony/console v5.0.7
- Conclusion: don't install symfony/console v5.0.6
- Conclusion: don't install symfony/console v5.0.5
- Conclusion: don't install symfony/console v5.0.4
- Conclusion: don't install symfony/console v5.0.3
- Conclusion: don't install symfony/console v5.0.2
- Installation request for stof/doctrine-extensions-bundle (locked at v1.6.0, required as ^1.3) -> satisfiable by stof/doctrine-extensions-bundle[v1.6.0].
- Conclusion: don't install symfony/console v5.0.1
- stof/doctrine-extensions-bundle v1.6.0 requires symfony/http-kernel ^4.4 || ^5.2 -> satisfiable by symfony/http-kernel[v4.4.21].
- symfony/console v5.0.0 conflicts with symfony/http-kernel[v4.4.21].
- symfony/console v5.0.0 conflicts with symfony/http-kernel[v4.4.21].
- Installation request for symfony/console 5.0.* -> satisfiable by symfony/console[v5.0.0, v5.0.1, v5.0.10, v5.0.11, v5.0.2, v5.0.3, v5.0.4, v5.0.5, v5.0.6, v5.0.7, v5.0.8, v5.0.9].
It looks like there is a problem with symfony/console and symfony/http-kernel. When I checked stof/doctrine-extensions-bundle on packagist I coudn't find any restrictions on symfony/console. For symfony/http-kernel it looks like at least 5.2 is required, however, I don't want to upgrade directly to Symfony 5.2, or is that the only way I can solve this? Does anyone see / know where this problem is coming from and can point me in the right direction?
Here is my composer.json:
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-curl": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-json": "*",
"ext-openssl": "*",
"ext-zlib": "*",
"babdev/pagerfanta-bundle": "^2.10",
"dompdf/dompdf": "^0.8.3",
"endroid/qrcode-bundle": "^3.4",
"friendsofsymfony/ckeditor-bundle": "^2.1",
"league/csv": "^8.0",
"mobiledetect/mobiledetectlib": "^2.8",
"sensio/framework-extra-bundle": "^5.4",
"stof/doctrine-extensions-bundle": "^1.3",
"swiftmailer/swiftmailer": "^6.0",
"symfony/apache-pack": "^1.0",
"symfony/asset": "5.0.*",
"symfony/console": "5.0.*",
"symfony/dotenv": "5.0.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.0.*",
"symfony/framework-bundle": "5.0.*",
"symfony/intl": "5.0.*",
"symfony/maker-bundle": "^1.13",
"symfony/monolog-bundle": "^3.5",
"symfony/orm-pack": "^1.0",
"symfony/security-bundle": "5.0.*",
"symfony/serializer": "5.0.*",
"symfony/serializer-pack": "^1.0",
"symfony/swiftmailer-bundle": "^3.4",
"symfony/twig-bundle": "5.0.*",
"symfony/yaml": "5.0.*"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.2",
"symfony/phpunit-bridge": "^5.2",
"symfony/profiler-pack": "^1.0"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"#auto-scripts"
],
"post-update-cmd": [
"#auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.0.*"
}
}
}

stof/doctrine-extensions-bundle v1.6.0 requires symfony/http-kernel ^4.4 || ^5.2 looks pretty clear to me: that package in that given version is not compatible with Symfony 5.0
Either downgrade stof/doctrine-extensions-bundle to v1.5 (which is compatible with Symfony 5.0), or (the better solution) update Symfony to v5.2 - the Support for 5.0 has ended in July 2020

Related

Issues trying to install sylius/product-bundle to my Symfony 5.3 project with composer

I am trying to develop a project and I'm having trouble installing a Sylius with composer.
Here is my composer.json
{
"type": "project",
"license": "proprietary",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.0",
"ext-ctype": "*",
"ext-iconv": "*",
"composer/package-versions-deprecated": "1.11.99.2",
"doctrine/annotations": "^1.0",
"doctrine/doctrine-bundle": "^2.4",
"doctrine/doctrine-migrations-bundle": "^3.1",
"doctrine/orm": "^2.9",
"phpdocumentor/reflection-docblock": "^5.2",
"sensio/framework-extra-bundle": "^6.1",
"symfony/apache-pack": "^1.0",
"symfony/asset": "5.3.*",
"symfony/console": "5.3.*",
"symfony/dotenv": "5.3.*",
"symfony/expression-language": "5.3.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.3.*",
"symfony/framework-bundle": "5.3.*",
"symfony/http-client": "5.3.*",
"symfony/intl": "5.3.*",
"symfony/mailer": "5.3.*",
"symfony/mime": "5.3.*",
"symfony/monolog-bundle": "^3.1",
"symfony/notifier": "5.3.*",
"symfony/process": "5.3.*",
"symfony/property-access": "5.3.*",
"symfony/property-info": "5.3.*",
"symfony/proxy-manager-bridge": "5.3.*",
"symfony/runtime": "5.3.*",
"symfony/security-bundle": "5.3.*",
"symfony/serializer": "5.3.*",
"symfony/string": "5.3.*",
"symfony/translation": "5.3.*",
"symfony/twig-bundle": "^5.3",
"symfony/validator": "5.3.*",
"symfony/web-link": "5.3.*",
"symfony/webpack-encore-bundle": "^1.11",
"symfony/yaml": "5.3.*",
"twig/extra-bundle": "^2.12|^3.0",
"twig/twig": "^2.12|^3.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "^5.3",
"symfony/css-selector": "^5.3",
"symfony/debug-bundle": "^5.3",
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^5.3",
"symfony/stopwatch": "^5.3",
"symfony/var-dumper": "^5.3",
"symfony/web-profiler-bundle": "^5.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"#auto-scripts"
],
"post-update-cmd": [
"#auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.3.*"
}
}
}
When I type composer require sylius/product-bundle I get this error
Using version ^0.15.0 for sylius/product-bundle
./composer.json has been updated
Running composer update sylius/product-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires sylius/product-bundle ^0.15.0 -> satisfiable by sylius/product-bundle[v0.15.0].
- sylius/product-bundle v0.15.0 requires symfony/framework-bundle ~2.3 -> found symfony/framework-bundle[v2.3.0, ..., 2.8.x-dev] but it conflicts with your root composer.json require (5.3.*).
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
So from what I understand, composer tries to fetch the version 0.15.0 of sylius/product-bundle, which obviously won't work with my configuration because it requires older versions of its dependencies, as shown below.
Only when I try to require a newer version with composer require sylius/product-bundle:1.9.4, I also get an error
[InvalidArgumentException]
Package sylius/product-bundle at version 1.9.4 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version
This one should have done the trick, given the required versions of its dependencies
I finally tried with composer require sylius/product-bundle:1.9.4 --ignore-platform-reqs, which once again gives me an error, but a different one
./composer.json has been updated
Running composer update sylius/product-bundle
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "5.3.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- gedmo/doctrine-extensions[v2.3.10, ..., v2.4.x-dev, v3.0.0-beta, ..., v3.0.1] require doctrine/common ~2.4 -> found doctrine/common[2.4.0-RC1, ..., 2.13.x-dev] but the package is fixed to 3.1.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- gedmo/doctrine-extensions[v2.3.4, ..., v2.3.9] require doctrine/common >=2.2,<2.5-dev -> found doctrine/common[2.2.0BETA1, ..., 2.4.x-dev] but the package is fixed to 3.1.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- gedmo/doctrine-extensions[v3.0.0-beta2, ..., v3.0.5] require doctrine/cache ^1.0 -> found doctrine/cache[v1.0, ..., 1.11.x-dev] but the package is fixed to 2.0.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- sylius/product-bundle v1.9.4 requires stof/doctrine-extensions-bundle ^1.4 -> satisfiable by stof/doctrine-extensions-bundle[v1.4.0, v1.5.0, v1.6.0, 1.6.x-dev (alias of dev-master)].
- stof/doctrine-extensions-bundle 1.6.x-dev is an alias of stof/doctrine-extensions-bundle dev-master and thus requires it to be installed too.
- stof/doctrine-extensions-bundle v1.4.0 requires gedmo/doctrine-extensions ^2.3.4 -> satisfiable by gedmo/doctrine-extensions[v2.3.4, ..., v2.4.x-dev].
- stof/doctrine-extensions-bundle[dev-master, v1.5.0, ..., v1.6.0] require gedmo/doctrine-extensions ^2.3.4 || ^3.0.0 -> satisfiable by gedmo/doctrine-extensions[v2.3.4, ..., v2.4.x-dev, v3.0.0-beta, ..., v3.0.5].
- Root composer.json requires sylius/product-bundle 1.9.4 -> satisfiable by sylius/product-bundle[v1.9.4].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I got PHP cli v8.0.6, Composer v2.0.12 and Symfony cli v4.25.2
You have two problems:
You have Symfony '5.3' installed, which was released just one day ago.
You are using PHP 8, which is not supported by Sylius. By using PHP 8, you end up installing versions of dependencies that are not compatible with Sylius.
Since the current version of Sylius supports up to 5.2, and PHP ^7.3, you'll have to either downgrade to Sf 5.2 and PHP >= 7.3 && PHP < 8, or wait a some time so support for Sf 5.3 and PHP >= 8 is baked in.
I would recommend using the standard Sylius installation, but trying to install Sylius with the recommended docs way (composer create-project sylius/sylius-standard acme) when using PHP 8 also fails. But downgrading to
PHP 7.4 and running the create-project command does work.
The project seems to have entered the dependency hell stage of development.

Symfony 5 can't install sensio/generator-bundle

i tried a fresh new symfony 5 project, but i cannot install the generator bundle to ease everything with doctrine entities.
It seems that Symfony 5 is too new to install the generator bundle.
Here is the output of the composer command to add the sensio generator bundle:
composer require sensio/generator-bundle
Using version ^3.1 for sensio/generator-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.1.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sensio/generator-bundle v3.1.7 requires symfony/framework-bundle ~2.7|~3.0 -> no matching package found.
- sensio/generator-bundle v3.1.6 requires symfony/framework-bundle ~2.7|~3.0 -> no matching package found.
- sensio/generator-bundle v3.1.5 requires symfony/framework-bundle ~2.7|~3.0 -> no matching package found.
- sensio/generator-bundle v3.1.4 requires symfony/framework-bundle ~2.7|~3.0 -> no matching package found.
- sensio/generator-bundle v3.1.3 requires symfony/framework-bundle ~2.7|~3.0 -> no matching package found.
- sensio/generator-bundle v3.1.2 requires symfony/framework-bundle ~2.7|~3.0 -> no matching package found.
- sensio/generator-bundle v3.1.1 requires symfony/framework-bundle ~2.7|~3.0 -> no matching package found.
- sensio/generator-bundle 3.1.0 requires symfony/framework-bundle ~2.7|~3.0 -> no matching package found.
- Installation request for sensio/generator-bundle ^3.1 -> satisfiable by sensio/generator-bundle[3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7].
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://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
and here is my composer.json file
{
"type": "project",
"license": "proprietary",
"require": {
"php": ">=7.2.5",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrine/doctrine-migrations-bundle": "^3.0",
"doctrine/orm": "^2.7",
"sensio/framework-extra-bundle": "^5.6",
"symfony/asset": "5.1.*",
"symfony/console": "5.1.*",
"symfony/dotenv": "5.1.*",
"symfony/flex": "^1.3.1",
"symfony/framework-bundle": "5.1.*",
"symfony/twig-bundle": "5.1.*",
"symfony/webpack-encore-bundle": "^1.7",
"symfony/yaml": "5.1.*",
"twig/extra-bundle": "^2.12|^3.0",
"twig/twig": "^2.12|^3.0"
},
"require-dev": {
"symfony/maker-bundle": "^1.22"
},
"config": {
"optimize-autoloader": true,
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"#auto-scripts"
],
"post-update-cmd": [
"#auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.1.*"
}
}
}
This bundle does not support Symfony 4 and 5.Use the Maker bundle instead.
maker bundle :
https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html

Composer dependency conflict (project with package)

I try to add package to starter-kit:
composer require akiraz2/Yii2-ticket-support "dev-master"
Starter-kit:
https://github.com/yii2-starter-kit/yii2-starter-kit
Package:
https://github.com/yii2-starter-kit/yii2-starter-kit
Composer.json in my project:
"require": {
"php": ">=7.1.0",
"ext-intl": "*",
"yiisoft/yii2": "^2.0.13",
"yiisoft/yii2-swiftmailer": "^2.0.0",
"yiisoft/yii2-authclient": "^2.0.0",
"yiisoft/yii2-bootstrap4": "^2.0",
"yiisoft/yii2-jui": "^2.0.0",
"yii2-starter-kit/yii2-file-kit": "^2.1.0",
"asofter/yii2-imperavi-redactor": ">=0.0.3#dev",
"trntv/yii2-aceeditor": "^2.0",
"trntv/probe": "^1.0",
"trntv/yii2-glide": "^1.2",
"trntv/yii2-datetime-widget": "dev-master#dev",
"trntv/cheatsheet": "^0.1#dev",
"trntv/yii2-command-bus": "^3.0",
"intervention/image": "^2.1",
"vlucas/phpdotenv": "^2.0",
"almasaeed2010/adminlte": "^3.0",
"npm-asset/font-awesome": "^5.0",
"npm-asset/html5shiv": "^3.0",
"npm-asset/jquery-slimscroll": "^1.3",
"npm-asset/flot": "^3.2",
"symfony/process": "^4.0",
"guzzlehttp/guzzle": "^6.0",
"alexantr/yii2-elfinder": "^1.3",
"trntv/sitemaped": "^0.1",
"yii2mod/yii2-swagger": "^1.1",
"kartik-v/yii2-widgets": "^3.4",
"akiraz2/yii2-ticket-support": "dev-master",
"rmrevin/yii2-fontawesome": "^3.4"
},
"require-dev": {
"yiisoft/yii2-debug": "^2.0.0",
"yiisoft/yii2-gii": "^2.0.0",
"yiisoft/yii2-faker": "^2.0.0",
"codeception/codeception": "2.4.0",
"codeception/verify": "^0.3.1"
},
Composer.json in the package: akiraz2/yii2-ticket-support
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"yiisoft/yii2": "~2.0",
"hashids/hashids": "^2.0",
"yiidoc/yii2-redactor": "*",
"php-imap/php-imap": "^3.0",
"yiisoft/yii2-queue": "~2.0"
},
Error:
Problem 1
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for akiraz2/yii2-ticket-support dev-master -> satisfiable by akiraz2/yii2-ticket-support[dev-master].
Just read the error message: it tells you that akiraz2/yii2-ticket-support requires rmrevin/yii2-fontawesome with the version constraint ~2.17, while your own application requires that same package with ^3.4

symfony - Your requirements could not be resolved to an installable set of packages

I am trying to setup a Symfony project that I cloned from a github repo but I'm having problems installing the dependencies.
When I run composer install, this is the result:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for doctrine/mongodb 1.0.0-BETA1 -> satisfiable by doctrine/mongodb[1.0.0-BETA1].
- doctrine/mongodb 1.0.0-BETA1 requires ext-mongo * -> the requested PHP extension mongo is missing from your system.
Problem 2
- Installation request for symfony/icu 1.1.x-dev -> satisfiable by symfony/icu[1.1.x-dev].
- symfony/icu 1.1.x-dev requires lib-icu >=3.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 3
- symfony/icu 1.1.x-dev requires lib-icu >=3.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- symfony/symfony 2.3.x-dev requires symfony/icu ~1.0 -> satisfiable by symfony/icu[1.1.x-dev].
- Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].
This is the composer.json
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"symfony/icu": "1.1.*",
"doctrine/orm": "2.3.4",
"doctrine/common": "2.3.0",
"doctrine/mongodb-odm": "1.0.*#dev",
"doctrine/mongodb-odm-bundle": "3.0.*#dev",
"twig/twig": "v1.12.2",
"twig/extensions": "v1.0.0",
"monolog/monolog": "1.3.1",
"symfony/monolog-bundle": "v2.3.0",
"doctrine/doctrine-bundle": "v1.2.0",
"doctrine/dbal": "v2.3.2",
"doctrine/doctrine-fixtures-bundle": "2.2.*",
"sensio/generator-bundle": "v2.3.4",
"jdorn/sql-formatter": "v1.2.0",
"gedmo/doctrine-extensions": "v2.3.5",
"symfony/assetic-bundle": "2.4.*#dev",
"symfony/swiftmailer-bundle": "master",
"jms/security-extra-bundle": "1.1.*",
"jms/di-extra-bundle": "1.0.*",
"jms/debugging-bundle": "dev-master",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"guzzle/guzzle": "*",
"rezzza/mailchimp-bundle": "1.0.*#dev",
"knplabs/gaufrette": "dev-master",
"knplabs/knp-gaufrette-bundle": "0.2.*#dev",
"imagine/Imagine": "dev-master",
"stfalcon/tinymce-bundle": "v0.2.0",
"gregwar/captcha-bundle": "dev-master",
"friendsofsymfony/rest-bundle": "1.2.2",
"jms/serializer-bundle": "0.13.0",
"chromedia/utilities": "dev-master",
"chromedia/security-token-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
},
"minimum-stability": "dev"
}
Thanks!
The composer explicitly say that your system misses ext-mongo, lib-icu, and the symfony/icu which is dependent on the 2nd one.
For ext-mongo, check in your php.ini if extension=mongo.so is commented, if it is, uncomment it.
For lib-icu, your missing the intl extension of php for the setup you can follow this answer: Problems with lib-icu dependency when installing Symfony 2.3.x via Composer

Unable to install SonataUserBundle in Symfony2 2.4

I can't install sonata-project/user-bundle with symfony2 2.4. Composer gives me such error message:
Problem 1
- Conclusion: remove symfony/symfony v2.4.0
- Installation request for symfony/framework-standard-edition 2.4.x-dev -> satisfiable by symfony/framework-standard-edition[2.4.x-dev].
- Conclusion: don't install symfony/symfony v2.4.0
- Installation request for sonata-project/user-bundle 2.2.2 -> satisfiable by sonata-project/user-bundle[2.2.2].
- Installation request for friendsofsymfony/user-bundle ~2.0#dev -> satisfiable by friendsofsymfony/user-bundle[2.0.x-dev].
- symfony/framework-standard-edition 2.4.x-dev requires sensio/framework-extra-bundle ~3.0 -> satisfiable by sensio/framework-extra-bundle[v3.0.0].
- sensio/framework-extra-bundle v3.0.0 requires symfony/framework-bundle ~2.4 -> satisfiable by symfony/symfony[v2.4.0], symfony/framework-bundle[v2.4.0].
- sensio/framework-extra-bundle v3.0.0 requires symfony/framework-bundle ~2.4 -> satisfiable by symfony/symfony[v2.4.0], symfony/framework-bundle[v2.4.0].
- Conclusion: don't install symfony/framework-bundle v2.4.0
My composer.json:
{
"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.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~2.0#dev",
"stof/doctrine-extensions-bundle": "~1.1#dev",
"sonata-project/admin-bundle": "~2.1",
"sonata-project/doctrine-orm-admin-bundle": "~2.1",
"sonata-project/user-bundle": "2.2.2",
"knplabs/knp-paginator-bundle": "2.3.*",
"knplabs/knp-menu-bundle": "1.1.*",
"knplabs/knp-menu": "1.1.*"
},
"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"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
}
}
When I delete line "sonata-project/user-bundle": "2.2.2", from composer.json - composer update runs smoothly.
Is sonata-user [2.2.2] not compatible with Symfony2 2.4 ? I can't find any official info about that.
I chceck composer.json od SonataUserBundle and SonataAdminBundle (which I installed successfully), and both require "symfony/http-foundation": "~2.2", so I'm realy out of ideas...
Update
Ticket in github
https://github.com/sonata-project/SonataUserBundle/issues/300#issuecomment-31214179
Change version of friendsofsymfony/user-bundle by modifying composer.json -
"friendsofsymfony/user-bundle": "1.3.3",
and issue the command:
composer update
Worked for me on Symfony 2.4.0
Good News!
I have added fixes to make SonataUserBundle work with FOSUserBundle 2.0*
https://github.com/sonata-project/SonataUserBundle/pull/303

Categories