Skip to content

Commit b7fff38

Browse files
Haehnchenfabpot
authored andcommitted
move event listener method type hint docs to @event annotations default value. makes it easily parsable by PhpStorm plugin
1 parent c964616 commit b7fff38

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

KernelEvents.php

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ final class KernelEvents
2323
* dispatching.
2424
*
2525
* This event allows you to create a response for a request before any
26-
* other code in the framework is executed. The event listener method
27-
* receives a Symfony\Component\HttpKernel\Event\GetResponseEvent
28-
* instance.
26+
* other code in the framework is executed.
2927
*
30-
* @Event
28+
* @Event("Symfony\Component\HttpKernel\Event\GetResponseEvent")
3129
*
3230
* @var string
3331
*/
@@ -37,11 +35,9 @@ final class KernelEvents
3735
* The EXCEPTION event occurs when an uncaught exception appears.
3836
*
3937
* This event allows you to create a response for a thrown exception or
40-
* to modify the thrown exception. The event listener method receives
41-
* a Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
42-
* instance.
38+
* to modify the thrown exception.
4339
*
44-
* @Event
40+
* @Event("Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent")
4541
*
4642
* @var string
4743
*/
@@ -52,11 +48,9 @@ final class KernelEvents
5248
* is not a Response instance.
5349
*
5450
* This event allows you to create a response for the return value of the
55-
* controller. The event listener method receives a
56-
* Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent
57-
* instance.
51+
* controller.
5852
*
59-
* @Event
53+
* @Event("Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent")
6054
*
6155
* @var string
6256
*/
@@ -67,10 +61,9 @@ final class KernelEvents
6761
* handling a request.
6862
*
6963
* This event allows you to change the controller that will handle the
70-
* request. The event listener method receives a
71-
* Symfony\Component\HttpKernel\Event\FilterControllerEvent instance.
64+
* request.
7265
*
73-
* @Event
66+
* @Event("Symfony\Component\HttpKernel\Event\FilterControllerEvent")
7467
*
7568
* @var string
7669
*/
@@ -94,10 +87,9 @@ final class KernelEvents
9487
* replying to a request.
9588
*
9689
* This event allows you to modify or replace the response that will be
97-
* replied. The event listener method receives a
98-
* Symfony\Component\HttpKernel\Event\FilterResponseEvent instance.
90+
* replied.
9991
*
100-
* @Event
92+
* @Event("Symfony\Component\HttpKernel\Event\FilterResponseEvent")
10193
*
10294
* @var string
10395
*/
@@ -107,10 +99,8 @@ final class KernelEvents
10799
* The TERMINATE event occurs once a response was sent.
108100
*
109101
* This event allows you to run expensive post-response jobs.
110-
* The event listener method receives a
111-
* Symfony\Component\HttpKernel\Event\PostResponseEvent instance.
112102
*
113-
* @Event
103+
* @Event("Symfony\Component\HttpKernel\Event\PostResponseEvent")
114104
*
115105
* @var string
116106
*/
@@ -121,10 +111,8 @@ final class KernelEvents
121111
*
122112
* This event allows you to reset the global and environmental state of
123113
* the application, when it was changed during the request.
124-
* The event listener method receives a
125-
* Symfony\Component\HttpKernel\Event\FinishRequestEvent instance.
126114
*
127-
* @Event
115+
* @Event("Symfony\Component\HttpKernel\Event\FinishRequestEvent")
128116
*
129117
* @var string
130118
*/

0 commit comments

Comments
 (0)