misc_pterodactyl-panel/app/Providers/BackupsServiceProvider.php

26 lines
589 B
PHP
Raw Permalink Normal View History

<?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.
*/
2023-02-23 19:30:16 +00:00
public function register(): void
{
$this->app->singleton(BackupManager::class, function ($app) {
return new BackupManager($app);
});
}
public function provides(): array
{
return [BackupManager::class];
}
}