/**
* @internal
*/
public function __construct( private readonly EventDispatcherInterface
$eventDispatcher,
private readonly SystemConfigService
$systemConfigService ) { } public function create(SalesChannelContext
$context): DataValidationDefinition
{ return $this->
createContactFormValidation('contact_form.create',
$context);
} public function update(SalesChannelContext
$context): DataValidationDefinition
{ return $this->
createContactFormValidation('contact_form.update',
$context);
} private function createContactFormValidation(string
$validationName, SalesChannelContext
$context): DataValidationDefinition
{ $definition =
new DataValidationDefinition($validationName);