Made 'symfony/event-dispatcher' dependency optional