MDL-46375 core_files: Split parts of file_storage into new file system
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 5 Jan 2016 10:14:16 +0000 (18:14 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 14 Feb 2017 00:42:28 +0000 (08:42 +0800)
commit16a34ae1892014a6ca3055a95ac7310442529a6c
tree685a22a87a10b4c31d83800e61bc27acbc6d828a
parent7a3b115d37497e6fe097a65b5262a9c08de45699
MDL-46375 core_files: Split parts of file_storage into new file system

This change moves all operations which deal with the fetching/updating, or
setting of files from the file_storage class into a new file_system class.

A new file_system can be specified in the config.php and used to replace
all relevant methods in order to move the file system component to an
alternative solution.
14 files changed:
composer.json
composer.lock
lib/filestorage/file_storage.php
lib/filestorage/file_system.php [new file with mode: 0644]
lib/filestorage/file_system_filedir.php [new file with mode: 0644]
lib/filestorage/stored_file.php
lib/filestorage/tests/file_storage_test.php
lib/filestorage/tests/file_system_filedir_test.php [new file with mode: 0644]
lib/filestorage/tests/file_system_test.php [new file with mode: 0644]
lib/filestorage/tests/fixtures/test.tgz [new file with mode: 0644]
lib/moodlelib.php
lib/upgrade.txt
question/format/blackboard_six/formatbase.php
repository/lib.php