19 lines
393 B
PHP
19 lines
393 B
PHP
<?php
|
|
|
|
namespace App\Actions\Integration;
|
|
|
|
use App\Models\IntegrationRequest;
|
|
use App\Services\IntegrationService;
|
|
|
|
class CreateIntegrationAction
|
|
{
|
|
public function __construct(protected IntegrationService $service)
|
|
{
|
|
}
|
|
|
|
public function execute(array $data): IntegrationRequest
|
|
{
|
|
return $this->service->createOnboarding($data, $data['template_id'] ?? null);
|
|
}
|
|
}
|