49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
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\ModelHostingSubscriptionCreatedListener;
|
|
use App\Listeners\ModelHostingSubscriptionDeletingListener;
|
|
use App\Policies\CustomerPolicy;
|
|
use Filament\Facades\Filament;
|
|
use Illuminate\Support\Facades\App;
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\Facades\Gate;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
App::singleton('file_manager_api', function () {
|
|
return new \App\FileManagerApi();
|
|
});
|
|
|
|
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');
|
|
});
|
|
|
|
Gate::define('delete-customer', [CustomerPolicy::class, 'delete']);
|
|
|
|
}
|
|
}
|