php - How to override others dependencies in composer.json -
i'm using alicefixturesbundles , depends on nelmioalice , faker. dependencies handled internal example:
https://github.com/h4cc/alicefixturesbundle/blob/master/composer.json { "name": "h4cc/alice-fixtures-bundle", "description": "symfony2 bundle loading fixture data alice library.", "keywords": ["symfony2", "fixtures", "alice", "loader", "doctrine", "orm", "mongodb"], "type": "symfony-bundle", "license": "mit", "authors": [ { "name": "julius beckmann", "email": "github@h4cc.de" } ], "require": { "php": ">=5.3.0", "nelmio/alice": "~1.6", "doctrine/common": "~2.1", "psr/log": "~1.0", "symfony/finder": "~2.0" }, "require-dev": { "phpunit/phpunit": "~4.0", "symfony/framework-bundle": "~2.1", "doctrine/orm": "~2.1", "doctrine/mongodb-odm": "1.0.*@dev", "doctrine/mongodb-odm-bundle": "3.0.*@dev", "matthiasnoback/symfony-config-test": "~0.2.1" }, "autoload": { "psr-4": { "h4cc\\alicefixturesbundle\\": "" } } } relies on:
https://github.com/nelmio/alice/blob/master/composer.json { "name": "nelmio/alice", "description": "expressive fixtures generator", "keywords": ["fixture", "data", "test", "orm"], "type": "library", "license": "mit", "authors": [ { "name": "jordi boggiano", "email": "j.boggiano@seld.be" }, { "name": "tim shelburne", "email": "shelburt02@gmail.com" } ], "require": { "php": ">=5.4", "fzaninotto/faker": "~1.0", "symfony/yaml": "~2.0" }, "require-dev": { "doctrine/common": "~2.3", "symfony/property-access": "~2.2", "phpunit/phpunit": "3.7.*" }, "autoload": { "psr-4": { "nelmio\\alice\\": "src/nelmio/alice" } }, "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } } } and problem here, on line: "fzaninotto/faker": "~1.0",, how override line on composer.json in order use "fzaninotto/faker": "1.5.*@dev" instead of 1 defined?
in own composer.json, can this:
{ "require": { "h4cc/alice-fixtures-bundle": "dev/master", //whatever version use "fzaninotto/faker": "dev-master 1.0" } }
Comments
Post a Comment