Skip to content

2.14.0

Choose a tag to compare

@mirko-pagliai mirko-pagliai released this 20 Mar 17:09
· 111 commits to 2.14.x since this release
fb20c2a

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 allows BackupExport and BackupImport to access the
    property via the magic methods getX() (be careful not to confuse the getCompression() method, which now returns
    the $compression property of BackupExport, with the old method provided by BackupTrait, which had been
    deprecated and has now been removed);
  • class DatabaseBackup\Driver\AbstractDriver has become DatabaseBackup\Executor\AbstractExecutor, class
    DatabaseBackup\Driver\Mysql has become DatabaseBackup\Executor\MysqlExecutor, class DatabaseBackup\Driver\Postgres
    has become DatabaseBackup\Executor\PostgresExecutor and class DatabaseBackup\Driver\Sqlite has 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 the Executor instance (old Driver classes now renamed)
    according to the connection;
  • passing the $compression argument as a string or null to BackupExport::compression() had been deprecated and has
    been removed (backwards compatibility removed);
  • the BackupManager::index methods no longer returns, in the array for each file, the filename key;
  • the BackupExport::filename() and BackupImport::filename() methods now throw an IOException exception (rather
    than a LogicException) if the target (directory) is not writable/the filename already exists/the filename is not
    readable;
  • the BackupExport::export() and BackupImport::import() methods now throw a RuntimeException exception (rather
    than a LogicException) when export/import fails;
  • the BackupImport::import() methods now throws a BadMethodCallException exception (rather than a LogicException)
    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 (hence MysqlExecutorTest) 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, RotateCommand and SendCommand classes had been deprecated and have been removed;
  • the getConnection() and getDriverName() methods provided by BackupTrait are deprecated and will be removed in a
    future release. The entire BackupTrait trait is now deprecated and will be removed in a future release;
  • getAbsolutePath(), getCompression(), getExtension() and getValidCompressions() methods provided by
    BackupTrait had 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, the BackupManager::send() method (and, consequently, the internal BackupManager::getEmailInstance()
    method), the BackupExport::send() method and the send option for the ExportCommand have been removed;
  • the delete() and deleteAll() methods provided by BackupManager had been deprecated and have been removed;
  • the rtr() global function had been deprecated and has been removed.

What's Changed

Full Changelog: 2.13.6...2.14.0