mirror of
https://github.com/Chouchen/Shikiryu_Backup.git
synced 2026-09-24 16:03:54 +02:00
✨ Makes dropbox working again
Using a new SDK, since the one we used is now deprecated
This commit is contained in:
1 parent
09d7880145
commit
3fe73c9b0b
6 files changed
+748
-28
No files matched your search
@@ -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