gaois / Tearma

An Bunachar Náisiúnta Téarmaíochta don Ghaeilge
http://www.tearma.ie/
3 stars 0 forks source link

Prefer dependency injection #3

Closed rodoch closed 5 years ago

rodoch commented 5 years ago

Minor structural changes that favour dependency injection over static method calls.

This mainly impacts:

Nothing is functionally changed but it's a decent approach. At some stage we might consider moving the broker to a separate project and injecting it via an interface (making it easier to add an API etc.)