Migrating from CakePHP 2
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()
.