Skip to content
Snippets Groups Projects
Commit 1b99459f authored by Oliver Klee's avatar Oliver Klee Committed by Christian Kuhn
Browse files

[TASK] Use constructor property promotion for EventDispatcherAdapter

Resolves: #101376
Releases: main
Change-Id: I8d091d11cb1eb1cc633364ced2af8f14538df527
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80077


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan B�rk <stefan@buerk.tech>
Reviewed-by: default avatarStefan B�rk <stefan@buerk.tech>
parent f77393d2
Branches
Tags
No related merge requests found
......@@ -22,14 +22,8 @@ use Symfony\Contracts\EventDispatcher\EventDispatcherInterface as SymfonyEventDi
final class EventDispatcherAdapter implements SymfonyEventDispatcherInterface
{
/**
* @var EventDispatcherInterface
*/
private $eventDispatcher;
public function __construct(EventDispatcherInterface $eventDispatcher)
public function __construct(private readonly EventDispatcherInterface $eventDispatcher)
{
$this->eventDispatcher = $eventDispatcher;
}
public function dispatch(object $event, string $eventName = null): object
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment