8000 Add machine readable events · symfony/symfony@54443ab · GitHub
[go: up one dir, main page]

Skip to content

Commit 54443ab

Browse files
committed
Add machine readable events
1 parent d8f839d commit 54443ab

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

src/Symfony/Component/Console/ConsoleEvents.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ final class ConsoleEvents
2626
* The event listener method receives a Symfony\Component\Console\Event\ConsoleCommandEvent
2727
* instance.
2828
*
29+
* @Event
30+
*
2931
* @var string
3032
*/
3133
const COMMAND = 'console.command';
@@ -37,6 +39,8 @@ final class ConsoleEvents
3739
* The event listener method receives a Symfony\Component\Console\Event\ConsoleTerminateEvent
3840
* instance.
3941
*
42+
* @Event
43+
*
4044
* @var string
4145
*/
4246
const TERMINATE = 'console.terminate';
@@ -49,6 +53,8 @@ final class ConsoleEvents
4953
* a Symfony\Component\Console\Event\ConsoleExceptionEvent
5054
* instance.
5155
*
56+
* @Event
57+
*
5258
* @var string
5359
*/
5460
const EXCEPTION = 'console.exception';

src/Symfony/Component/Form/FormEvents.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,52 @@
1515
*/
1616
final class FormEvents
1717
{
18+
/**
19+
* @Event
20+
*/
1821
const PRE_SUBMIT = 'form.pre_bind';
1922

23+
/**
24+
* @Event
25+
*/
2026
const SUBMIT = 'form.bind';
2127

28+
/**
29+
* @Event
30+
*/
2231
const POST_SUBMIT = 'form.post_bind';
2332

33+
/**
34+
* @Event
35+
*/
2436
const PRE_SET_DATA = 'form.pre_set_data';
2537

38+
/**
39+
* @Event
40+
*/
2641
const POST_SET_DATA = 'form.post_set_data';
2742

2843
/**
2944
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
3045
* {@link PRE_SUBMIT} instead.
46+
*
47+
* @Event
3148
*/
3249
const PRE_BIND = 'form.pre_bind';
3350

3451
/**
3552
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
3653
* {@link SUBMIT} instead.
54+
*
55+
* @Event
3756
*/
3857
const BIND = 'form.bind';
3958

4059
/**
4160
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
4261
* {@link POST_SUBMIT} instead.
62+
*
63+
* @Event
4364
*/
4465
const POST_BIND = 'form.post_bind';
4566

src/Symfony/Component/HttpKernel/KernelEvents.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ final class KernelEvents
2929
* receives a Symfony\Component\HttpKernel\Event\GetResponseEvent
3030
* instance.
3131
*
32+
* @Event
33+
*
3234
* @var string
3335
*
3436
* @api
@@ -43,6 +45,8 @@ final class KernelEvents
4345
* a Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
4446
* instance.
4547
*
48+
* @Event
49+
*
4650
* @var string
4751
*
4852
* @api
@@ -58,6 +62,8 @@ final class KernelEvents
5862
* Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent
5963
* instance.
6064
*
65+
* @Event
66+
*
6167
* @var string
6268
*
6369
* @api
@@ -72,6 +78,8 @@ final class KernelEvents
7278
* request. The event listener method receives a
7379
* Symfony\Component\HttpKernel\Event\FilterControllerEvent instance.
7480
*
81+
* @Event
82+
*
7583
* @var string
7684
*
7785
* @api
@@ -86,6 +94,8 @@ final class KernelEvents
8694
* replied. The event listener method receives a
8795
* Symfony\Component\HttpKernel\Event\FilterResponseEvent instance.
8896
*
97+
* @Event
98+
*
8999
* @var string
90100
*
91101
* @api
@@ -99,6 +109,8 @@ final class KernelEvents
99109
* The event listener method receives a
100110
* Symfony\Component\HttpKernel\Event\PostResponseEvent instance.
101111
*
112+
* @Event
113+
*
102114
* @var string
103115
*/
104116
const TERMINATE = 'kernel.terminate';
@@ -109,6 +121,8 @@ final class KernelEvents
109121
* This event allows you to reset the global and environmental state of
110122
* the application, when it was changed during the request.
111123
*
124+
* @Event
125+
*
112126
* @var string
113127
*/
114128
const FINISH_REQUEST = 'kernel.finish_request';

src/Symfony/Component/Security/Http/SecurityEvents.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ final class SecurityEvents
2020
* The event listener method receives a
2121
* Symfony\Component\Security\Http\Event\InteractiveLoginEvent instance.
2222
*
23+
* @Event
24+
*
2325
* @var string
2426
*/
2527
const INTERACTIVE_LOGIN = 'security.interactive_login';
@@ -31,6 +33,8 @@ final class SecurityEvents
3133
* The event listener method receives a
3234
* Symfony\Component\Security\Http\Event\SwitchUserEvent instance.
3335
*
36+
* @Event
37+
*
3438
* @var string
3539
*/
3640
const SWITCH_USER = 'security.switch_user';

0 commit comments

Comments
 (0)
0