filebackend: cleaned up the FileBackend constructor
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 23 Nov 2013 21:51:32 +0000 (13:51 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 24 Nov 2013 04:21:53 +0000 (20:21 -0800)
commit1f129a22cbc8546b89dd4b49b2f567c1f758a968
tree6ab27c805abdfa9b97c4fee0524b13b8e386fecf
parent9f66447e0aac4f72a7cdcac9ab25ded25aeb8d4e
filebackend: cleaned up the FileBackend constructor

* Moved some of the graph construction work to FileBackendGroup.
  This helps the code in not depending on the rest of MW so much.
* Updated tests and FileBackendMultiwrite, which are the only things
  directly constructing FileBackend objects.

Change-Id: I188a053c70ce088ce34613d5db40e6708e3ea9b7
16 files changed:
includes/filebackend/FileBackend.php
includes/filebackend/FileBackendGroup.php
includes/filebackend/FileBackendMultiWrite.php
tests/parser/parserTest.inc
tests/phpunit/includes/LocalFileTest.php
tests/phpunit/includes/filebackend/FileBackendTest.php
tests/phpunit/includes/filerepo/FileRepoTest.php
tests/phpunit/includes/filerepo/StoreBatchTest.php
tests/phpunit/includes/media/ExifRotationTest.php
tests/phpunit/includes/media/FormatMetadataTest.php
tests/phpunit/includes/media/GIFTest.php
tests/phpunit/includes/media/JpegTest.php
tests/phpunit/includes/media/PNGTest.php
tests/phpunit/includes/media/SVGTest.php
tests/phpunit/includes/parser/NewParserTest.php
tests/phpunit/suites/UploadFromUrlTestSuite.php