Bonjour à tous,
J'apprends en ce moment à utiliser Symfony 2 et je rencontre un problème récurrent lors de l'installation des Bundle de Sonata.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ./composer.json has been updated 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 - sonata-project/page-bundle 2.3.9 requires sonata-project/seo-bundle ~1.1 -> no matching package found. - sonata-project/page-bundle 2.3.8 requires sonata-project/seo-bundle ~1.1 -> no matching package found. - sonata-project/page-bundle 2.3.7 requires sonata-project/seo-bundle ~1.1 -> no matching package found. - sonata-project/page-bundle 2.3.6 requires sonata-project/seo-bundle ~1.1 -> no matching package found. - sonata-project/page-bundle 2.3.5 requires sonata-project/seo-bundle ~1.1 -> no matching package found. - sonata-project/page-bundle 2.3.4 requires symfony/symfony >=2.2,<2.4-dev -> no matching package found. - sonata-project/page-bundle 2.3.3 requires symfony/symfony >=2.2,<2.4-dev -> no matching package found. - sonata-project/page-bundle 2.3.2 requires symfony/symfony >=2.2,<2.4-dev -> no matching package found. - sonata-project/page-bundle 2.3.1 requires symfony/symfony >=2.2,<2.4-dev -> no matching package found. - sonata-project/page-bundle 2.3.0 requires symfony/symfony >=2.2,<2.4-dev -> no matching package found. - Installation request for sonata-project/page-bundle ^2.3 -> satisfiable by sonata-project/page-bundle[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9]. 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. |
Selon la page d'installation de Sonata, l'installation de Sonata Page Bundle requière les 7 Bundles suivants :
1 2 3 4 5 6 7 SonataCacheBundle SonataBlockBundle SonataSeoBundle SonataEasyExtendsBundle SonataNotificationBundle SonataAdminBundle SonataDoctrineORMAdminBundle
Le Block Bundle m'a déjà posé problème auparavant, peut-être que c'est la cause du problème.
Voici mon composer.json :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | { "name": "root/ms", "license": "proprietary", "type": "project", "autoload": { "psr-4": { "": "src/" } }, "require": { "php": ">=5.3.9", "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", "sensio/generator-bundle": "^2.5", "doctrine/doctrine-fixtures-bundle": "^2.3", "twig/extensions": "^1.3", "gedmo/doctrine-extensions": "^2.4", "nervo/yuicompressor": "^2.4", "friendsofsymfony/user-bundle": "^1.3", "sonata-project/core-bundle": "^2.3", "sonata-project/admin-bundle": "^2.3", "sonata-project/user-bundle": "^2.2", "sonata-project/doctrine-orm-admin-bundle": "^2.3", "sonata-project/easy-extends-bundle": "^2.1", "sonata-project/cache-bundle": "^2.2", "sonata-project/seo-bundle": "^2.0", "sonata-project/notification-bundle": "^2.3" }, "require-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", "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" }, "extra": { "symfony-app-dir": "app", "symfony-web-dir": "web", "symfony-assets-install": "relative", "incenteev-parameters": { "file": "app/config/parameters.yml" } } } |
Est-ce que vous auriez une idée ? J'ai tenté de rajouter –dev devant, mais ça ne marche pas mieux.
Merci d'avance.
+0
-0