Skip to content

[Event Dispatcher] SF 4.3, EventListener receiving WrappedEvent class instead of actual event class #31221

@raress96

Description

@raress96

Symfony version(s) affected: 4.3.x

Description
When registering an EventListener / Subscriber in SF 4.3 dev for a custom event, the actual event that is passed to the function is of instance WrappedEvent, which seems to be an internal class.
The actual event dispatched can be gotten from the WrappedEvent class, but since it is marked as internal and will be removed in SF 5, I don't think this class should be dispatched.

How to reproduce
Create an EventListener / EventSubscriber for a custom event, dispatch it and see what happens.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy