d2d.emegrendeles.hu/app/Providers/AppServiceProvider.php
2026-05-17 21:35:26 +02:00

98 lines
7.0 KiB
PHP

<?php
namespace App\Providers;
use App\Repositories\AddressRepository;
use App\Repositories\AddressRepositoryInterface;
use App\Repositories\ContactRepository;
use App\Repositories\ContactRepositoryInterface;
use App\Repositories\OrderRepository;
use App\Repositories\OrderRepositoryInterface;
use App\Repositories\PackRepository;
use App\Repositories\PackRepositoryInterface;
use App\Repositories\PriceListRepository;
use App\Repositories\PriceListRepositoryInterface;
use App\Repositories\ProducerRepository;
use App\Repositories\ProducerRepositoryInterface;
use App\Repositories\ProductRepository;
use App\Repositories\ProductRepositoryInterface;
use App\Repositories\ProfitCenterRepository;
use App\Repositories\ProfitCenterRepositoryInterface;
use App\Repositories\SupplierRepository;
use App\Repositories\SupplierRepositoryInterface;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
if ($this->app->environment('local')) {
$this->app->register(\Laravel\Dusk\DuskServiceProvider::class);
}
$this->app->bind(AddressRepositoryInterface::class, AddressRepository::class);
$this->app->bind(ContactRepositoryInterface::class, ContactRepository::class);
$this->app->bind(OrderRepositoryInterface::class, OrderRepository::class);
$this->app->bind(PackRepositoryInterface::class, PackRepository::class);
$this->app->bind(PriceListRepositoryInterface::class, PriceListRepository::class);
$this->app->bind(ProducerRepositoryInterface::class, ProducerRepository::class);
$this->app->bind(ProductRepositoryInterface::class, ProductRepository::class);
$this->app->bind(ProfitCenterRepositoryInterface::class, ProfitCenterRepository::class);
$this->app->bind(SupplierRepositoryInterface::class, SupplierRepository::class);
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
URL::forceScheme('https');
\Illuminate\Database\Schema\Blueprint::macro('userIdFields', function () {
$this->unsignedInteger('created_by')->nullable();
$this->unsignedInteger('updated_by')->nullable();
$this->unsignedInteger('deleted_by')->nullable();
});
\Livewire\Livewire::component('app.filament.pages.price-list-processor', \App\Filament\Pages\PriceListProcessor::class);
\Livewire\Livewire::component('app.filament.auth.login', \App\Filament\Auth\Login::class);
\Livewire\Livewire::component('app.filament.pages.calendar-test', \App\Filament\Pages\CalendarTest::class);
\Livewire\Livewire::component('app.filament.widgets.delivery-calendar-widget', \App\Filament\Widgets\DeliveryCalendarWidget::class);
\Livewire\Livewire::component('app.filament.supplier-portal.resources.product-stocks.pages.list-product-stocks', \App\Filament\SupplierPortal\Resources\ProductStocks\Pages\ListProductStocks::class);
\Livewire\Livewire::component('app.filament.supplier-portal.resources.product-stocks.pages.edit-product-stock', \App\Filament\SupplierPortal\Resources\ProductStocks\Pages\EditProductStock::class);
\Livewire\Livewire::component('app.filament.resources.work-calendars.pages.list-work-calendars', \App\Filament\Resources\WorkCalendars\Pages\ListWorkCalendars::class);
\Livewire\Livewire::component('app.filament.resources.work-calendars.pages.create-work-calendar', \App\Filament\Resources\WorkCalendars\Pages\CreateWorkCalendar::class);
\Livewire\Livewire::component('app.filament.resources.work-calendars.pages.edit-work-calendar', \App\Filament\Resources\WorkCalendars\Pages\EditWorkCalendar::class);
\Livewire\Livewire::component('app.filament.resources.delivery-schedules.pages.list-delivery-schedules', \App\Filament\Resources\DeliverySchedules\Pages\ListDeliverySchedules::class);
\Livewire\Livewire::component('app.filament.resources.delivery-schedules.pages.create-delivery-schedule', \App\Filament\Resources\DeliverySchedules\Pages\CreateDeliverySchedule::class);
\Livewire\Livewire::component('app.filament.resources.delivery-schedules.pages.edit-delivery-schedule', \App\Filament\Resources\DeliverySchedules\Pages\EditDeliverySchedule::class);
\Livewire\Livewire::component('app.filament.resources.delivery-calendar-overrides.pages.list-delivery-calendar-overrides', \App\Filament\Resources\DeliveryCalendarOverrides\Pages\ListDeliveryCalendarOverrides::class);
\Livewire\Livewire::component('app.filament.resources.delivery-calendar-overrides.pages.create-delivery-calendar-override', \App\Filament\Resources\DeliveryCalendarOverrides\Pages\CreateDeliveryCalendarOverride::class);
\Livewire\Livewire::component('app.filament.resources.delivery-calendar-overrides.pages.edit-delivery-calendar-override', \App\Filament\Resources\DeliveryCalendarOverrides\Pages\EditDeliveryCalendarOverride::class);
\Livewire\Livewire::component('app.filament.resources.pricelist-files.pages.list-pricelist-files', \App\Filament\Resources\PricelistFiles\Pages\ListPricelistFiles::class);
\Livewire\Livewire::component('app.filament.resources.pricelist-files.pages.create-pricelist-file', \App\Filament\Resources\PricelistFiles\Pages\CreatePricelistFile::class);
\Livewire\Livewire::component('app.filament.resources.pricelist-files.pages.edit-pricelist-file', \App\Filament\Resources\PricelistFiles\Pages\EditPricelistFile::class);
\Livewire\Livewire::component('app.filament.resources.pricelist-files.pages.view-pricelist-file', \App\Filament\Resources\PricelistFiles\Pages\ViewPricelistFile::class);
\Livewire\Livewire::component('app.filament.resources.profit-center-supplier-schedules.pages.list-profit-center-supplier-schedules', \App\Filament\Resources\ProfitCenterSupplierSchedules\Pages\ListProfitCenterSupplierSchedules::class);
\Livewire\Livewire::component('app.filament.resources.profit-center-supplier-schedules.pages.create-profit-center-supplier-schedule', \App\Filament\Resources\ProfitCenterSupplierSchedules\Pages\CreateProfitCenterSupplierSchedule::class);
\Livewire\Livewire::component('app.filament.resources.profit-center-supplier-schedules.pages.edit-profit-center-supplier-schedule', \App\Filament\Resources\ProfitCenterSupplierSchedules\Pages\EditProfitCenterSupplierSchedule::class);
\Livewire\Livewire::component('filament.livewire.notifications', \Filament\Livewire\Notifications::class);
\Livewire\Livewire::component('filament.livewire.database-notifications', \Filament\Livewire\DatabaseNotifications::class);
\Livewire\Livewire::component('filament.livewire.sidebar', \Filament\Livewire\Sidebar::class);
\Livewire\Livewire::component('filament.livewire.topbar', \Filament\Livewire\Topbar::class);
\Livewire\Livewire::component('filament.livewire.global-search', \Filament\Livewire\GlobalSearch::class);
}
}