Here is a list of things that have changed:
- The plugin doesn't any longer use the configuration namespace
Media
but instead uses now the more appropriate namespaceFileStorage
. - The plugin is not using the CakeDC Migrations plugin any more but the official CakePHP Migrations plugin.
Lib\Utility\StorageUtils
has been moved toStorage\StorageUtils
.FileStorageTable::fileExtension()
has been removed, usepathinfo($path, PATHINFO_EXTENSION)
instead.FileStorageTable::stripUuid()
has been removed, use events to handle the file saving andAbstractStorageEventListener::stripDashes()
.FileStorageTable::tmpFile()
has been removed, use events to handle the file saving andAbstractStorageEventListener::createTmpFile()
.FileStorageTable::tmpFile()
has been moved toAbstractStorageEventListener::fsPath()
, use events to handle the file saving.ImageStorageTable::hashOperations()
has been removed, useStorageUtils::hashOperations()
.ImageStorageTable::generateHashes()
has been removed, useStorageUtils::generateHashes()
.ImageStorageTable::ksortRecursive()
has been removed, useStorageUtils::ksortRecursive()
.- Former
UploadValidatorBehavior::uploadArray()
has been moved toStorageUtils::uploadArray()
. ImageHelper
has been renamed toLegacyImageHelper
and been replaced by a much more simpler implementation.
The only purpose of the image helper was to generate the versions for the images on the fly depending on your config. This logic behind that was pretty complex and if stored right, there is no need to re-build the whole path.
The new implementation just adds the hash to the path, it doesn't do anything more or cares about the adapter or pathbuilders.
The old implementation is still accessible through the LegacyImageHelper.