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
24 lines
757 B
PHP
24 lines
757 B
PHP
<?php
|
|
|
|
namespace MediaWiki\ResourceLoader\Hook;
|
|
|
|
/**
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
* Use the hook name "ResourceLoaderSiteStylesModulePages" to register handlers implementing this interface.
|
|
*
|
|
* @stable to implement
|
|
* @ingroup ResourceLoaderHooks
|
|
*/
|
|
interface ResourceLoaderSiteStylesModulePagesHook {
|
|
/**
|
|
* Change which wiki pages comprise the `site.styles` module in given skin.
|
|
*
|
|
* This hook is called from ResourceLoaderSiteStylesModule.
|
|
*
|
|
* @since 1.35
|
|
* @param string $skin Current skin key
|
|
* @param array &$pages Array of pages and their types
|
|
* @return void This hook must not abort, it must return no value
|
|
*/
|
|
public function onResourceLoaderSiteStylesModulePages( $skin, array &$pages ): void;
|
|
}
|