resourceloader: Move packaging to a new getModuleContent() method
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 14 May 2015 19:05:47 +0000 (20:05 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 9 Jun 2015 01:04:58 +0000 (02:04 +0100)
commit5ddd7f91c7677ae44e57bdafece9ae6bd35b7830
tree5d65e0bb7c47631e233cf2a9c92c0d7972f37ffd
parent50c6cd2458f2ad01997429bbf5d37241a8222a4c
resourceloader: Move packaging to a new getModuleContent() method

Centralise the building of module packages into this method so
that it can be easily re-used.

This is in preparation for providing the option for modules to use
content-based hashing (instead of based on meta-data) in the version
string of modules. Having a getModuleContent method allows that to
be implemented in a way that is well-cached (as we'll be calling it
from multiple multiple code paths) and without duplicating this logic.

Bug: T98087
Change-Id: I376233caaabe44b6101565b70a50904abdf8ab4f
includes/resourceloader/ResourceLoader.php
includes/resourceloader/ResourceLoaderModule.php