LocalisationCache: Don't instantiate ResourceLoader
authordaniel <dkinzler@wikimedia.org>
Tue, 26 Nov 2019 19:33:10 +0000 (20:33 +0100)
committerReedy <reedy@wikimedia.org>
Sun, 1 Dec 2019 20:50:31 +0000 (20:50 +0000)
commit2f401c66aa5e57419aa0884fe602de006edf1e60
tree6d2b1f726f6cb02f2addd4baec8f83cc032d7ae9
parent90c137152d718c6ad88680286229dbbf2a4a75c8
LocalisationCache: Don't instantiate ResourceLoader

When clearing the LocalisationCache, avoid instantiating a ResourceLoader
instance. Doing so introduces a circular dependency among service
instances.

This patch introduces a static method for clearing the MessageBlobStore
without the need for a ResoruceLoader instance.

Bug: T231866
Change-Id: I404e64713fee6a534ba014981cef78af0b91f2aa
(cherry picked from commit 41415deda4c66ba52194c4df51c54c367f1f10b9)
includes/ServiceWiring.php
includes/resourceloader/MessageBlobStore.php