<?php

declare(strict_types=1);

namespace Gls\GlsPoland\EventDispatcher;

use Symfony\Component\EventDispatcher\Event as LegacyEvent;
use Symfony\Contracts\EventDispatcher\Event as BaseEvent;

if (class_exists(LegacyEvent::class)) {
    class Event extends LegacyEvent
    {
    }
} else {
    class Event extends BaseEvent
    {
    }
}
