mirror of
https://github.com/moodle/moodle.git
synced 2025-02-19 15:45:59 +01:00
Using DI for all hook access means that it becomes significantly easier to mock hooks and callbacks for unit testing without fundamentally altering the structure of the code purely for the purposes of unit testing.