Explain the dependency injection pattern and how you configure Hilt or Dagger to manage scoped dependencies in a multi-module project.