20 lines
554 B
PHP
Executable File
20 lines
554 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Evomedien\Vitec\Forms\Delivery;
|
|
|
|
/**
|
|
* Delivery strategy for VITEC form submissions.
|
|
* Implementations MUST throw on failure — the middleware logs the error
|
|
* on the stored submission and keeps the data safe.
|
|
*/
|
|
interface DeliveryInterface
|
|
{
|
|
/**
|
|
* @param array<string,string> $payload validated, filtered field values
|
|
* @param array<string,mixed> $settings FlexForm settings of the form plugin
|
|
*/
|
|
public function deliver(string $formKey, array $payload, array $settings): void;
|
|
}
|