Files
2025-08-02 16:30:27 +02:00

38 lines
705 B
PHP

<?php
namespace KupShop\ContentBundle\Event;
use Symfony\Contracts\EventDispatcher\Event;
class FormEvent extends Event
{
public const FORM_SUBMITTED = 'kupshop.form_submitted';
public const FORM_VALIDATE = 'kupshop.form_validate';
private $type;
private $data;
private $config;
public function __construct($formType, $formData, $formConfig)
{
$this->type = $formType;
$this->data = $formData;
$this->config = $formConfig;
}
public function getType()
{
return $this->type;
}
public function getData()
{
return $this->data;
}
public function getConfig()
{
return $this->config;
}
}