resourceloader: Keep module_deps handling inside module base class
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 17 Sep 2015 22:14:46 +0000 (23:14 +0100)
committerOri.livneh <ori@wikimedia.org>
Thu, 24 Sep 2015 07:43:51 +0000 (07:43 +0000)
commitd04a92a5517d656447d73001e51a8cfb9b130d07
tree57b3f76d19a18e8acde440ced91bf4dbc372f4af
parent78c47763ab93a9f7680d304c99e89c15c2a353a4
resourceloader: Keep module_deps handling inside module base class

Most of it was already there (SELECT in preloadInfo, and in-class holder via
setFileDependencies) but the logic to write to the database was within
the file module class.

Moving it the other way around may make more sense in the future, but for
the moment ResourceLoader.php makes assumptions about all modules being
able to store setFileDependencies as read from the database. Whether or not
a class currently implements a way to write to that table.

Change-Id: I06b5da4144798197478c66e8b9ccd4cc62cf6fb6
includes/resourceloader/ResourceLoaderFileModule.php
includes/resourceloader/ResourceLoaderModule.php