mirror of
https://github.com/Chouchen/Shikiryu_Backup.git
synced 2021-06-30 16:02:14 +02:00
✨ Makes dropbox working again
Using a new SDK, since the one we used is now deprecated
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user