vendor/netgen/layouts-core/lib/Utils/BackwardsCompatibility/EventDispatcherProxy.php line 22
<?phpdeclare(strict_types=1);namespace Netgen\Layouts\Utils\BackwardsCompatibility;use Symfony\Component\EventDispatcher\EventDispatcherInterface;use Symfony\Component\HttpKernel\Kernel;final class EventDispatcherProxy{private EventDispatcherInterface $eventDispatcher;public function __construct(EventDispatcherInterface $eventDispatcher){$this->eventDispatcher = $eventDispatcher;}public function dispatch(object $event, string $eventName): ?object{if (Kernel::VERSION_ID >= 40300) {return $this->eventDispatcher->dispatch($event, $eventName);}return $this->eventDispatcher->dispatch($eventName, $event);}}