minkphp / MinkBundle

Mink library integration bundle for Symfony2
MIT License
60 stars 18 forks source link

Composer installation incomplete #30

Closed egeloen closed 12 years ago

egeloen commented 12 years ago

Hey,

I have followed the tutorial explaining how to install mink with composer available here. So, my composer.json looks like:

{
    "name": "symfony/framework-standard-edition",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {
        "php": ">=5.3.2",
        "symfony/symfony": "2.1.*",
        "doctrine/orm": "2.2.0",
        "doctrine/doctrine-bundle": "dev-master",
        "twig/extensions": "dev-master",
        "symfony/assetic-bundle": "dev-master",
        "symfony/swiftmailer-bundle": "dev-master",
        "symfony/monolog-bundle": "dev-master",
        "sensio/distribution-bundle": "dev-master",
        "sensio/framework-extra-bundle": "dev-master",
        "sensio/generator-bundle": "dev-master",
        "jms/security-extra-bundle": "dev-master",

        "behat/behat-bundle": "dev-master",
        "behat/mink-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"
    },
    "repositories": {
        "behat/mink-deps": {
            "type": "composer",
            "url": "behat.org"
        }
    }
}

All works fine excepts the recommend section is not installed. According to the composer documentation, this section is by default installed. Someone can explain me what is wrong ?

stof commented 12 years ago

Currently, Composer installs the recommendations of the root package by default but not the recommendations of the deps. This is still missing in the solver.

egeloen commented 12 years ago

It seems that a lot of features only works in the root package. I hope the solver will evolve on this way! Btw, thanks !

stof commented 12 years ago

@egeloen allowing scripts only on the root is not a technical limitation of the solver. There is 2 reasons:

egeloen commented 12 years ago

Thanks for your explanation !