resourceloader: Change getLessCompiler() to not be static
authorjdlrobson <jdlrobson@gmail.com>
Fri, 8 Jan 2016 22:09:36 +0000 (14:09 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 15 Jan 2016 02:44:32 +0000 (18:44 -0800)
commit4d0a36f333ffa3ca45f6446c1c9367ba54c05ea8
tree3edd43cdc6b0bec1e0dc89831344bb8ecb7901b4
parent0599bd94ebd9b875da3236e88bcf48a25db343e9
resourceloader: Change getLessCompiler() to not be static

Cache Less variables in the instance instead of statically.

This allows tests to populate their own less variabless via ResourceLoaderLESSVars.

Make getLessCompiler() and getLessVars() regular public methods and
update callers.

Change-Id: I95506b8bb20a4b2b3f82014a7b0fcee5f28973e6
includes/resourceloader/ResourceLoader.php
includes/resourceloader/ResourceLoaderFileModule.php