for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Zikula package.
*
* Copyright Zikula Foundation - https://ziku.la/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zikula\UsersModule\Event;
use Symfony\Component\Form\FormInterface;
use Zikula\Bundle\FormExtensionBundle\Event\FormPostValidatedEvent;
use Zikula\UsersModule\Entity\UserEntity;
/**
* Called on user registration or admin user creation to handle form submission.
* See also UserFormPostCreatedEvent
class UserFormPostValidatedEvent extends FormPostValidatedEvent
{
* @var UserEntity
private $user;
public function __construct(FormInterface $form, UserEntity $user)
parent::__construct($form);
$this->user = $user;
}
public function getUser(): UserEntity
return $this->user;