Migrating from CakePHP 2
Here is a list of things that have changed:
- The plugin doesn't any longer use the configuration namespace
Mediabut instead uses now the more appropriate namespace
- The plugin is not using the CakeDC Migrations plugin any more but the official CakePHP Migrations plugin.
Lib\Utility\StorageUtilshas been moved to
FileStorageTable::fileExtension()has been removed, use
FileStorageTable::stripUuid()has been removed, use events to handle the file saving and
FileStorageTable::tmpFile()has been removed, use events to handle the file saving and
FileStorageTable::tmpFile()has been moved to
AbstractStorageEventListener::fsPath(), use events to handle the file saving.
ImageStorageTable::hashOperations()has been removed, use
ImageStorageTable::generateHashes()has been removed, use
ImageStorageTable::ksortRecursive()has been removed, use
UploadValidatorBehavior::uploadArray()has been moved to
ImageHelperhas been renamed to
LegacyImageHelperand been replaced by a much more simpler implementation.
Image Helper Changes
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.