fabpot/Silex — Issue #214: composer dependency error
Author: mcz
Created: 2011-11-21 14:12:29+00:00
State: open

Hi guy,

I just installed silex using composer and I get the following error:

```
Fatal error: Class 'Symfony\Component\HttpKernel\EventListener\RouterListener' not
found in /gold/trunk/vendor/silex/silex/src/Silex/Application.php on line 87
```

I guest the problem is caused the the old 2.0.x Symfony doesn't have RouterListener class, only the 2.1 branch.

Here is my composer.json configuration for my project:

```json
{
"name": "GOLD",
"repositories": {
"facebook-php-sdk": {
"package": {
"name": "facebook/php-sdk",
"version": "1.0.0",
"source": {
"url": "git://github.com/facebook/php-sdk.git",
"type": "git",
"reference": "v3.1.1"
}
}
}
},
"require": {
"facebook/php-sdk": "*",
"symfony/yaml": "=2.0.6.0",
"silex/silex": "*",
"symfony/twig-bridge": ">=2.0",
"twig/twig": ">=1.2.0",
"doctrine/dbal": "2.1.*",
"symfony/class-loader": "=2.0.6.0"
}
}
```