Makes dropbox working again

Using a new SDK, since the one we used is now deprecated
This commit is contained in:
2020-02-03 17:34:52 +01:00
parent 09d7880145
commit 3fe73c9b0b
6 changed files with 748 additions and 28 deletions

View File

@@ -9,7 +9,6 @@ use Shikiryu\Backup\Transport\Factory as TransportFactory;
class Scenario
{
/* @var $backup BackupAbstract */
private $backup;
/* @var $to TransportAbstract */
@@ -18,19 +17,8 @@ class Scenario
public static function register()
{
include __DIR__.'/../../vendor/autoload.php';
//spl_autoload_register(array(__CLASS__, 'autoload'));
}
/*public static function autoload($class)
{
if (strpos($class, __NAMESPACE__.'\\') === 0)
{
$relative_NS = str_replace(__NAMESPACE__, '', $class);
$translated_path = str_replace('\\', '/', $relative_NS);
require __DIR__ . '/' . $translated_path . '.php';
}
}*/
/**
* @param array $scenario
*/
@@ -70,8 +58,6 @@ class Scenario
// add autoloader
static::register();
$scenario = __DIR__.'/../scenario/'.$scenario;
// check the given scenario
if (is_readable($scenario)) {
$scenario = json_decode(file_get_contents($scenario), true);