Skip to content

Conversation

@maltehuebner
Copy link
Contributor

Summary

  • Remove unused ManagerRegistry dependency from PollutionDataFactory constructor
  • Update HistoryDataFactory constructor accordingly
  • Remove stale commented-out code that was the only consumer

Context

The ManagerRegistry was injected into PollutionDataFactory but only referenced in a commented-out code block. Data retrieval now goes through the DataRetrieverInterface chain, making the direct registry access unnecessary.

Test plan

  • Verify Symfony DI container compiles without errors (php bin/console cache:clear)
  • Verify pollution data display still works on coord and station pages
  • Verify history feature still works

🤖 Generated with Claude Code

ManagerRegistry was only used by commented-out code. Remove the
dependency from both PollutionDataFactory and HistoryDataFactory
constructors, and clean up the stale commented-out code block.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant