Remove workarounds for the lack of proper autoloading for aliased
parameter type declarations which was fixed in PHP 7.4.
Change-Id: Ic4485d06e7ad8d02859dc3e5c67867c4b084386f
Follows the amespace-ification of ResourceLoader (Id08a220e1d608,
3e2653f8), which implicitly modified the cache keygroup from
"MessageBlobStore" to "MediaWiki_ResourceLoader_MessageBlobStore".
Bring it more in line with other key groups by adopting the same
naming convention as other memcached keys in ResourceLoader and
more generally in MediaWiki code.
Also, factor out the cache key formula so that it is naturally correct
instead of requiring each of the three pairs to be tested and reviewed
to be identical to its counter-part, and yet different from the two
other very similar pairs.
Bug: T308718
Change-Id: I6b0b87e1c5ddf147788b0c61f401e8ff671b843c
Move ResourceLoader classes to their own namespace. Strip the
"ResourceLoader" prefix from all except ResourceLoader itself.
Move the tests by analogy.
I used a namespace alias "RL" in some callers since RL\Module is less
ambiguous at the call site than just "Module".
I did not address DependencyStore which continues to have a non-standard
location and namespace.
Revert of a241d83e0a.
Bug: T308718
Change-Id: Id08a220e1d6085e2b33f3f6c9d0e3935a4204659
This reverts commit e08ea8ccb9.
Reason for revert: Breaks Phan in extensions, and as far as I’m aware,
this change isn’t urgently needed for anything, so the simplest fix is
to revert it again for now. After PHP 7.4 it should be safer to try this
again (we hopefully won’t need the two “hack” classes by then).
Bug: T308443
Change-Id: Iff3318cbf97a67f821f78e60da62a583f63e389e
Move ResourceLoader classes to their own namespace. Strip the
"ResourceLoader" prefix from all except ResourceLoader and
ResourceLoaderContext.
Move the tests by analogy.
I used a namespace alias "RL" in some callers since RL\Module is less
ambiguous at the call site than just "Module".
I did not address DependencyStore which continues to have a non-standard
location and namespace.
Change-Id: I92998ae6a82e0b935c13e02a183e7c324fa410a3
2022-05-16 14:41:27 +10:00
Renamed from includes/resourceloader/MessageBlobStore.php (Browse further)