FriendsOfSymfony/FOSRestBundle — pull request #197 by raulfraile (2012-03-13 10:14:57+00:00)
Title: Updated autoload instructions for 0.6

I updated the "Configure de autoload" section for 0.6 instalation, to make it work with Symfony 2.0.x.

Before:

``` php
registerNamespaces(array(
// ...
'FOS' => array(__DIR__.'/../vendor/bundles', __DIR__.'/../vendor/fos'),
));
```

After:

``` php
registerNamespaces(array(
// ...
'FOS\\Rest' => __DIR__.'/../vendor/fos',
'FOS' => __DIR__.'/../vendor/bundles',
));
```
Without the changes I was getting this error:

Fatal error: Class 'FOS\Rest\Util\Codes' not found in .../vendor/bundles/FOS/RestBundle/DependencyInjection/Configuration.php on line 101