This PR replaces the File\Loader class with File\FileLoader. The class could not have its constructor changes as Commerce and CMS both have classes that extend it, so it would be a major BC break.
Summary
This PR:
Adds File\FileLoaderInterface, which is implemented by all file loaders, and includes new methods: getByFilename() and getByExtension()
Deprecates File\Loader
Adds File\FileLoader which is a refactored version of File\Loader that uses the QueryBuilder
This PR replaces the
File\Loader
class withFile\FileLoader
. The class could not have its constructor changes as Commerce and CMS both have classes that extend it, so it would be a major BC break.Summary
This PR:
File\FileLoaderInterface
, which is implemented by all file loaders, and includes new methods:getByFilename()
andgetByExtension()
File\Loader
File\FileLoader
which is a refactored version ofFile\Loader
that uses the QueryBuilderFile\TagLoader
for loading file tagsThis PR makes https://github.com/mothership-ec/cog-mothership-file-manager/pull/84 redundant