2020-04-26 23:07:36 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use Pterodactyl\Extensions\Backups\BackupManager;
|
|
|
|
use Illuminate\Contracts\Support\DeferrableProvider;
|
|
|
|
|
|
|
|
class BackupsServiceProvider extends ServiceProvider implements DeferrableProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register the S3 backup disk.
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
$this->app->singleton(BackupManager::class, function ($app) {
|
|
|
|
return new BackupManager($app);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
public function provides(): array
|
2020-04-26 23:07:36 +00:00
|
|
|
{
|
|
|
|
return [BackupManager::class];
|
|
|
|
}
|
|
|
|
}
|