19 lines
378 B
PHP
19 lines
378 B
PHP
<?php
|
|
|
|
namespace App\Event;
|
|
|
|
use App\Entity\Application;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class ApplicationCreatedEvent extends Event
|
|
{
|
|
public const NAME = 'application.created';
|
|
|
|
public function __construct(private readonly Application $application)
|
|
{}
|
|
|
|
public function getApplication(): Application
|
|
{
|
|
return $this->application;
|
|
}
|
|
} |