2024-04-22 11:14:05 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2024-05-02 14:51:26 +00:00
|
|
|
use App\BackupStorage;
|
2024-04-22 11:14:05 +00:00
|
|
|
use App\Events\ModelDomainCreated;
|
|
|
|
use App\Events\ModelDomainDeleting;
|
|
|
|
use App\Events\ModelHostingSubscriptionCreated;
|
|
|
|
use App\Events\ModelHostingSubscriptionDeleting;
|
|
|
|
use App\Listeners\ModelDomainCreatedListener;
|
|
|
|
use App\Listeners\ModelDomainDeletingListener;
|
|
|
|
use App\Listeners\ModelHostingSubscriptionCreatingListener;
|
|
|
|
use App\Listeners\ModelHostingSubscriptionDeletingListener;
|
2024-05-09 12:44:00 +00:00
|
|
|
use App\Livewire\BackupLog;
|
2024-04-29 09:40:39 +00:00
|
|
|
use App\Livewire\Components\QuickServiceRestartMenu;
|
2024-05-09 11:50:58 +00:00
|
|
|
use App\Livewire\HostingSubscriptionBackupLog;
|
2024-05-10 12:26:38 +00:00
|
|
|
use App\Livewire\JobQueueNotifications;
|
2024-04-30 22:06:11 +00:00
|
|
|
use App\Models\Domain;
|
|
|
|
use App\Models\HostingSubscription;
|
2024-04-22 11:14:05 +00:00
|
|
|
use App\Policies\CustomerPolicy;
|
|
|
|
use BladeUI\Icons\Factory;
|
|
|
|
use Filament\Facades\Filament;
|
2024-05-02 14:51:26 +00:00
|
|
|
use Illuminate\Filesystem\Filesystem;
|
2024-04-22 11:14:05 +00:00
|
|
|
use Illuminate\Support\Facades\App;
|
2024-05-02 14:51:26 +00:00
|
|
|
use Illuminate\Support\Facades\Config;
|
2024-04-22 11:14:05 +00:00
|
|
|
use Illuminate\Support\Facades\Event;
|
|
|
|
use Illuminate\Support\Facades\Gate;
|
2024-04-30 21:52:50 +00:00
|
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
use Illuminate\Support\Facades\URL;
|
2024-04-22 11:14:05 +00:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
2024-04-30 22:06:11 +00:00
|
|
|
use Illuminate\Support\Str;
|
2024-04-29 09:40:39 +00:00
|
|
|
use Livewire\Livewire;
|
2024-04-22 11:14:05 +00:00
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*/
|
|
|
|
public function register(): void
|
|
|
|
{
|
|
|
|
// Register Phyre Icons set
|
|
|
|
$this->callAfterResolving(Factory::class, function (Factory $factory) {
|
|
|
|
$factory->add('phyre', [
|
|
|
|
'path' => __DIR__ . '/../../resources/phyre-svg',
|
|
|
|
'prefix' => 'phyre',
|
|
|
|
]);
|
|
|
|
});
|
|
|
|
|
|
|
|
App::singleton('virtualHostManager', function () {
|
|
|
|
return new \App\VirtualHosts\ApacheVirtualHostManager();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*/
|
|
|
|
public function boot(): void
|
|
|
|
{
|
|
|
|
Filament::serving(function () {
|
|
|
|
// Using Vite
|
|
|
|
Filament::registerViteTheme('resources/css/app.css');
|
|
|
|
});
|
|
|
|
|
2024-05-10 12:26:38 +00:00
|
|
|
Livewire::component('jobs-queue-notifications', JobQueueNotifications::class);
|
2024-04-29 09:40:39 +00:00
|
|
|
Livewire::component('quick-service-restart-menu', QuickServiceRestartMenu::class);
|
2024-05-09 11:50:58 +00:00
|
|
|
Livewire::component('hosting-subscription-backup-log', HostingSubscriptionBackupLog::class);
|
2024-05-09 12:44:00 +00:00
|
|
|
Livewire::component('backup-log', BackupLog::class);
|
2024-04-29 09:40:39 +00:00
|
|
|
|
2024-04-22 11:14:05 +00:00
|
|
|
Gate::define('delete-customer', [CustomerPolicy::class, 'delete']);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|