<?php

namespace App\Filament\Resources\PricelistFiles\Pages;

use App\Filament\Resources\PricelistFiles\PricelistFileResource;
use Filament\Resources\Pages\CreateRecord;

class CreatePricelistFile extends CreateRecord
{
    protected static string $resource = PricelistFileResource::class;

    protected function afterCreate(): void
    {
        app(\App\Services\PricelistFileProcessService::class)->dispatchInitialChain($this->record);
    }
}
