I have been looking around the net with no luck on this issue. I am using composer\'s autoload with this code in my composer.json:
\"autoload\":
Every package should be responsible for autoloading itself, what are you trying to achieve with autoloading classes that are out of the package you define?
One workaround if it's for your application itself is to add a namespace to the loader instance, something like this:
add('AppName', __DIR__.'/../src/');