initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\Vite;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function register(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
if (! enum_exists('SortDirection', false)) {
|
||||
require_once base_path('vendor/symfony/polyfill-php86/Resources/stubs/SortDirection.php');
|
||||
}
|
||||
|
||||
Schema::defaultStringLength(191);
|
||||
|
||||
Vite::prefetch(concurrency: 3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Domain\Integration\MachineProviderInterface;
|
||||
use App\Domain\Integration\SimulatedMachineProvider;
|
||||
use App\Services\AuditService;
|
||||
use App\Services\BookingService;
|
||||
use App\Services\MachineIntegrationService;
|
||||
use App\Services\PaymentService;
|
||||
use App\Services\PricingService;
|
||||
use App\Services\WalletService;
|
||||
use App\Services\WashService;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class IntegrationServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->singleton(SimulatedMachineProvider::class);
|
||||
$this->app->singleton(MachineIntegrationService::class);
|
||||
|
||||
$this->app->bind(MachineProviderInterface::class, SimulatedMachineProvider::class);
|
||||
|
||||
$this->app->singleton(WalletService::class);
|
||||
$this->app->singleton(PricingService::class);
|
||||
$this->app->singleton(AuditService::class);
|
||||
$this->app->singleton(BookingService::class);
|
||||
$this->app->singleton(WashService::class);
|
||||
$this->app->singleton(PaymentService::class);
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user