15 resolve dependencies using scope

When resolving by class in a scope, dependencies will be re
solved from the same scope if possible. otherwise, dependencies will be resolve
d from the default scope.