composer/composer — Issue #170: Solver doesn't recognize dependencies
Author: marijn
Created: 2011-12-23 15:09:51+00:00
State: open

My `composer.json` instructions don't fetch the right recursive dependencies:

```json
{
"name": "example/project",
"authors": [
{
"name": "Marijn Huizendveld",
"email": "marijn@example.com"
}
],
"require": {
"doctrine/orm": "2.2.0-beta1",
"symfony/form": "2.0.6",
"symfony/security": "2.0.7"
},
"autoload": {
"psr-0": {
"Example\\Tests": "tests/"
"Example": "src/",
}
}
}
```

Installing required dependencies
--------------------------------

I would expect this to install these packages when I run `$ composer.phar install`:

* `doctrine/common`
* `doctrine/dbal`
* `doctrine/orm`
* `symfony/event-dispatcher`
* `symfony/form`
* `symfony/http-foundation`
* `symfony/http-kernel`
* `symfony/locale`
* `symfony/security`
* `symfony/validator`

However, only these packages are installed:

* `doctrine/common`
* `doctrine/dbal`
* `doctrine/orm`
* `symfony/form`
* `symfony/security`

Installing suggested dependencies
---------------------------------

I would expect this to install these packages when I run `$ composer.phar install --install-suggests`:

* `doctrine/common`
* `doctrine/dbal`
* `doctrine/orm`
* `symfony/class-loader`
* `symfony/event-dispatcher`
* `symfony/finder`
* `symfony/form`
* `symfony/http-foundation`
* `symfony/http-kernel`
* `symfony/locale`
* `symfony/routing`
* `symfony/validator`

However, only these packages are installed:

* `doctrine/common`
* `doctrine/dbal`
* `doctrine/orm`
* `symfony/form`
* `symfony/security`

System
------

Before running these commands I ran `$ composer.phar self-update`
Running `$ composer.phar --version` results in the following output:

```$ Composer version 5c8eb35```

I'm on a Mac running OS X Lion.