for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Silverback API Component Bundle Project
*
* (c) Daniel West <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Silverback\ApiComponentBundle\Event;
use Silverback\ApiComponentBundle\Entity\Component\Form;
use Symfony\Component\Form\FormInterface;
use Symfony\Contracts\EventDispatcher\Event;
/**
* @author Daniel West <[email protected]>
class FormSuccessEvent extends Event
{
private Form $formResource;
private FormInterface $form;
public array $serializerContext = [];
public function __construct(Form $formResource, FormInterface $form)
$this->formResource = $formResource;
$this->form = $form;
}
public function getFormResource(): Form
return $this->formResource;
public function getForm(): FormInterface
return $this->form;