mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 04:06:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			619 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			619 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Providers;
 | |
| 
 | |
| use App\Extensions\Backups\BackupManager;
 | |
| use Illuminate\Contracts\Support\DeferrableProvider;
 | |
| use Illuminate\Support\ServiceProvider;
 | |
| 
 | |
| class BackupsServiceProvider extends ServiceProvider implements DeferrableProvider
 | |
| {
 | |
|     /**
 | |
|      * Register the S3 backup disk.
 | |
|      */
 | |
|     public function register(): void
 | |
|     {
 | |
|         $this->app->singleton(BackupManager::class, function ($app) {
 | |
|             return new BackupManager($app);
 | |
|         });
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return class-string[]
 | |
|      */
 | |
|     public function provides(): array
 | |
|     {
 | |
|         return [BackupManager::class];
 | |
|     }
 | |
| }
 | 
