2.14.0
Caution
This release starts the new 2.14.x branch.
For the end user, there should be no major problems upgrading from 2.13.x, except for some possible deprecations. It is recommended that you perform any necessary checks before and after upgrading.
- added new magic
AbstractBackupUtility::__call()method. This allowsBackupExportandBackupImportto access the
property via the magic methodsgetX()(be careful not to confuse thegetCompression()method, which now returns
the$compressionproperty ofBackupExport, with the old method provided byBackupTrait, which had been
deprecated and has now been removed); - class
DatabaseBackup\Driver\AbstractDriverhas becomeDatabaseBackup\Executor\AbstractExecutor, class
DatabaseBackup\Driver\Mysqlhas becomeDatabaseBackup\Executor\MysqlExecutor, classDatabaseBackup\Driver\Postgres
has becomeDatabaseBackup\Executor\PostgresExecutorand classDatabaseBackup\Driver\Sqlitehas become
DatabaseBackup\Executor\SqliteExecutor. Aliases have been added to old classes for backwards compatibility, but will
be removed in a future release; - added new
AbstractBackupUtility::getExecutor()that gets theExecutorinstance (oldDriverclasses now renamed)
according to the connection; - passing the
$compressionargument as a string ornulltoBackupExport::compression()had been deprecated and has
been removed (backwards compatibility removed); - the
BackupManager::indexmethods no longer returns, in the array for each file, thefilenamekey; - the
BackupExport::filename()andBackupImport::filename()methods now throw anIOExceptionexception (rather
than aLogicException) if the target (directory) is not writable/the filename already exists/the filename is not
readable; - the
BackupExport::export()andBackupImport::import()methods now throw aRuntimeExceptionexception (rather
than aLogicException) when export/import fails; - the
BackupImport::import()methods now throws aBadMethodCallExceptionexception (rather than aLogicException)
when the filename has not been set; - fixed a deprecation regarding a
Finder::sort()method call; - the
TestCase::createSomeBackups()method has been improved; - tests for
MysqlExecutor(henceMysqlExecutorTest) can be run regardless of the driver in use; - the
AbstractBackupUtility::getDriver()method is deprecated and will be removed in a future release. Use instead the
getExecutor()method; - the
AbstractBackupUtility::__get()method is deprecated and will be removed in a future release; DeleteAllCommand,RotateCommandandSendCommandclasses had been deprecated and have been removed;- the
getConnection()andgetDriverName()methods provided byBackupTraitare deprecated and will be removed in a
future release. The entireBackupTraittrait is now deprecated and will be removed in a future release; getAbsolutePath(),getCompression(),getExtension()andgetValidCompressions()methods provided by
BackupTraithad been deprecated and has been removed;- all classes, methods and code related to sending backups via email had been deprecated, and now they have been
removed. So, theBackupManager::send()method (and, consequently, the internalBackupManager::getEmailInstance()
method), theBackupExport::send()method and thesendoption for theExportCommandhave been removed; - the
delete()anddeleteAll()methods provided byBackupManagerhad been deprecated and have been removed; - the
rtr()global function had been deprecated and has been removed.
What's Changed
- 2.14.x develop by @mirko-pagliai in #142
- 2.14.x develop by @mirko-pagliai in #143
- 2.14.x develop by @mirko-pagliai in #144
- tests for
MysqlExecutor(henceMysqlExecutorTest) can be run rega… by @mirko-pagliai in #145 - updated by @mirko-pagliai in #146
Full Changelog: 2.13.6...2.14.0