Move Linker::getLinkColour() into LinkRenderer
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 27 May 2016 16:11:58 +0000 (09:11 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 27 May 2016 16:18:09 +0000 (09:18 -0700)
commit5119236d4df5b71fbb9fafba21b2603d79a33341
tree07c57413331db51188973ea1982e5a5b64a16205
parent20bdcc7620c34f55f1aa1ec55c6e19eee7a6cd3c
Move Linker::getLinkColour() into LinkRenderer

* Rename to getLinkClasses() since it's not really returning colours,
  but CSS classes.
* Dependency inject LinkCache into LinkRenderer
* Update all callers of Linker::getLinkColour(), and mark it as
  deprecated (no other uses in Gerrit)
* Update a bunch of tests for new dependency

Change-Id: Id178e2dcc60b833ce2dbad4920896b93cabba1bf
includes/DummyLinker.php
includes/Linker.php
includes/ServiceWiring.php
includes/linker/LinkRenderer.php
includes/linker/LinkRendererFactory.php
includes/parser/LinkHolderArray.php
tests/phpunit/includes/LinkerTest.php
tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php
tests/phpunit/includes/changes/TestRecentChangesHelper.php
tests/phpunit/includes/linker/LinkRendererFactoryTest.php
tests/phpunit/includes/linker/LinkRendererTest.php