Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Components][EventDispatcher] Documentation forEventDispatcher aware Events is outdated #3521

Closed
Labels
EventDispatcheractionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)
Milestone
@SimonSimCity

Description

@SimonSimCity

As I read through a bunch of my code I saw, that the method$event->getDispatcher() in my event is deprecated as of v2.4 and will be removed in v3.0, even so it's still the only documented way in the current documentation:https://github.com/symfony/symfony-docs/blob/6f286e18acdf003e2f1ced45b202b2578a4a47a6/components/event_dispatcher/introduction.rst#eventdispatcher-aware-events-and-listeners

I browsed through the change-sets on the class and found this one:symfony/event-dispatcher@d855e87

This makes it possible to create a listener like this instead of calling the method$event->getDispatcher():

class LinkRequestListener{publicfunctiononKernelRequest(GetResponseEvent$event,$name,EventDispatcherInterface$dispatcher)    {    }}

Please update the documentation, because I don't feel that comfortable with English to write it in a good way :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    EventDispatcheractionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp