symfony-cmf / symfony-cmf-docs

The documentation for the symfony content management framework
http://cmf.symfony.com
44 stars 157 forks source link

Code example won't resolve deps #375

Closed felds closed 10 years ago

felds commented 10 years ago

If you follow the instructions on http://symfony.com/doc/current/cmf/cookbook/create_new_project_phpcr_odm.html, the provided composer.json config won't resolve the dependencies.

Logs

using "minimum-stability": "stable"

  Problem 1
    - Installation request for symfony-cmf/routing-auto-bundle dev-master -> satisfiable by symfony-cmf/routing-auto-bundle[dev-master].
    - symfony-cmf/routing-auto-bundle dev-master requires doctrine/phpcr-odm dev-master as 1.0.x-dev -> no matching package found.
  Problem 2
    - Installation request for sonata-project/doctrine-phpcr-admin-bundle dev-master -> satisfiable by sonata-project/doctrine-phpcr-admin-bundle[dev-master].
    - sonata-project/doctrine-phpcr-admin-bundle dev-master requires symfony-cmf/tree-browser-bundle >=1.1.0,<1.2.0 -> no matching package found.
  Problem 3
    - symfony-cmf/routing-auto-bundle dev-master requires doctrine/phpcr-odm dev-master as 1.0.x-dev -> no matching package found.
    - symfony/framework-standard-edition 2.4.x-dev requires symfony-cmf/routing-auto-bundle dev-master -> satisfiable by symfony-cmf/routing-auto-bundle[dev-master].
    - Installation request for symfony/framework-standard-edition 2.4.x-dev -> satisfiable by symfony/framework-standard-edition[2.4.x-dev].

using "minimum-stability": "dev"

  Problem 1
    - Installation request for symfony-cmf/routing-auto-bundle dev-master -> satisfiable by symfony-cmf/routing-auto-bundle[dev-master].
    - symfony-cmf/menu-bundle 1.0.0 requires doctrine/phpcr-odm 1.0.* -> satisfiable by doctrine/phpcr-odm[1.0.1, 1.0.0, 1.0.0-RC1, 1.0.0-RC2, 1.0.0-RC3, 1.0.0-RC4, 1.0.0-RC5, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, 1.0.0-beta2, 1.0.0-beta3, 1.0.0-beta4, 1.0.0-beta5, 1.0.x-dev].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.1].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-RC1].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-RC2].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-RC3].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-RC4].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-RC5].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-alpha1].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-alpha2].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-beta1].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-beta2].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-beta3].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-beta4].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.0-beta5].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.1].
    - Can only install one of: doctrine/phpcr-odm[dev-master, 1.0.x-dev].
    - symfony-cmf/routing-auto-bundle dev-master requires doctrine/phpcr-odm dev-master as 1.0.x-dev -> satisfiable by doctrine/phpcr-odm[dev-master].
    - Installation request for symfony-cmf/menu-bundle 1.0 -> satisfiable by symfony-cmf/menu-bundle[1.0.0].

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.4",
        "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",

        "doctrine/phpcr-bundle": "1.0.0",
        "doctrine/phpcr-odm": "1.0.*",
        "jackalope/jackalope-doctrine-dbal": "1.0.0",

        "symfony-cmf/routing-auto-bundle": "dev-master",
        "symfony-cmf/menu-bundle": "1.0",
        "sonata-project/doctrine-phpcr-admin-bundle": "dev-master",
        "doctrine/data-fixtures": "1.0.0"
    },
    "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"
        }
    }
}
lsmith77 commented 10 years ago

@dantleech you wrote that guide right? can you have a look?

dantleech commented 10 years ago

That document is out-of-date it seems, and it is soon to be replaced by:

https://github.com/symfony-cmf/symfony-cmf-docs/pull/341

If you change your deps to those referenced in that PR all should be well:

https://github.com/symfony-cmf/symfony-cmf-docs/pull/341/files#diff-c5bd191f51627ae912c1e5a05e2330f3R32

dbu commented 10 years ago

@felds #341 is merged. can you please check if it works fine for you?

felds commented 10 years ago

It works like a charm. You guys are awesome! :wink: