composer/composer — Issue #195: Repository name conflict
Author: l3pp4rd
Created: 2012-01-10 15:35:13+00:00
State: open

As an example, having json:

``` json
{
"require": {
"php": ">=5.3.2",
"symfony/symfony": ">=2.0.9,<2.1.0-dev",
"twig/extensions": "*",

"symfony/assetic-bundle": "*",
"sensio/distribution-bundle": "2.0.*",
"doctrine/mongodb-odm-bundle-cust": "2.0.*",
"knplabs/knp-menu-bundle": "*"
},

"repositories": {
"doctrine/mongodb-odm-bundle-cust": {
"package": {
"name": "doctrine/mongodb-odm-bundle-cust",
"version": "2.0.1",
"dist": {
"url": "https://github.com/doctrine/DoctrineMongoDBBundle/zipball/v2.0.1",
"type": "zip"
},
"source": {
"url": "git://github.com/doctrine/DoctrineMongoDBBundle.git",
"type": "git",
"reference": "master"
},
"require": {
"php": ">=5.3.2",
"doctrine/mongodb-odm": "*",
"symfony/doctrine-bridge": "2.0.*",
"symfony/framework-bundle": "2.0.*"
},
"autoload": {
"psr-0": {
"Symfony\\Bundle\\DoctrineMongoDBBundle": ""
}
},
"target-dir": "Symfony/Bundle/DoctrineMongoDBBundle"
}
}
},

"autoload": {
"psr-0": {
"Jirafe": "src/"
}
}
}
```

If instead of **doctrine/mongodb-odm-bundle-cust** you would use **doctrine/mongodb-odm-bundle** it would silectly just ignore the **repositories** config part. You should at least warn user about it, if you say its intended behavior, well its a time waster + a doc regarding custom repositories is a must before any work further :)