I've got a situation using composer to load a class in a Silex app.

This class is located at:

```
src/custom/UserProvider.php

```

In my composer.json, I've added this lines:

```
"autoload": {
   "psr-0": {
        "CustomNamespace": "src/custom/"
    }
}

```

Inside my UserProvider.php file, I've got:

```
namespace CustomNamespace;

```

When I ran *composer update* in console, this line was added to the /vendor/composer/autoload\_namespaces.php

```
'CustomNamespace' => $baseDir . '/src/custom/',

```

But, when I try to use the class:

```
new CustomNamespace\UserProvider();

```

I got this error:

> 
> Fatal error: Class 'CustomNamespace\UserProvider' not found in /home/ubuntu/www/project/web/index.php on line 27
> 
> 
> 

Does anyone knows what's going on? Thanks!