resourceloader: Add ResourceLoaderModule::shouldEmbedModule and use it
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 30 Jun 2017 18:19:38 +0000 (14:19 -0400)
committerKrinkle <krinklemail@gmail.com>
Fri, 21 Jul 2017 17:57:34 +0000 (17:57 +0000)
commitf6466732bbdc289da6c81efcb551d53ccc04d1ef
tree89db4d9f25f08a00af199202cf01f00355b01cbf
parente72303c9f3b2f9a271c3dda3a6c7bbb03334ea64
resourceloader: Add ResourceLoaderModule::shouldEmbedModule and use it

Rather than only the 'private' group triggering embedding, allow modules
to explicitly specify if they should be embedded.

The default is still to only embed when the group is 'private', and the
'private' group is still special in that ResourceLoader::respond() will
still refuse to serve it from load.php.

Change-Id: Ib9a043c566822e278baecc15e87f9c5cebc2eb98
includes/resourceloader/ResourceLoaderClientHtml.php
includes/resourceloader/ResourceLoaderModule.php
tests/phpunit/ResourceLoaderTestCase.php
tests/phpunit/includes/resourceloader/ResourceLoaderClientHtmlTest.php