<?php
/**
 * Form-scoped TwintCore: same engine, swapped data provider + event handler.
 *
 * The parent's create() is private, so we re-expose `create_for_transaction`
 * and `create_for_admin` and call into the private factory via static late
 * binding. The DATAPROVIDER_CLASS / EVENTHANDLER_CLASS constants are honoured
 * by the parent's create() through `static::DATAPROVIDER_CLASS`, so the
 * override takes effect inside the inherited factory call.
 */

namespace Twnt4All\Pay4All;

use Twnt4All\Engine\TwintCore;

if ( ! defined( 'ABSPATH' ) ) { exit; }

final class FormTwintCore extends TwintCore
{
    const DATAPROVIDER_CLASS = FormConfigProvider::class;
    const EVENTHANDLER_CLASS = FormDomainEvents::class;
}
