Translations:User:NNikkhoui (WMF)/Sandbox/764/en

MediaWiki 1.35 introduced a new system for creating and using hooks. Previous to 1.35, hook handlers had no way to inject dependencies. This problem was solved by defining hook handlers as ObjectFactory objects. Additionally, using hook interfaces allows validation of hook arguments as well as serving as documentation for the hook itself. Finally, the hook runner is instantiated as a service instead of a static function allowing for dependency injection and ease of testability.