Passing config in dependencies