Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/KernelEvents.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
24 * | 24 * |
25 * This event allows you to create a response for a request before any | 25 * This event allows you to create a response for a request before any |
26 * other code in the framework is executed. | 26 * other code in the framework is executed. |
27 * | 27 * |
28 * @Event("Symfony\Component\HttpKernel\Event\GetResponseEvent") | 28 * @Event("Symfony\Component\HttpKernel\Event\GetResponseEvent") |
29 * | |
30 * @var string | |
31 */ | 29 */ |
32 const REQUEST = 'kernel.request'; | 30 const REQUEST = 'kernel.request'; |
33 | 31 |
34 /** | 32 /** |
35 * The EXCEPTION event occurs when an uncaught exception appears. | 33 * The EXCEPTION event occurs when an uncaught exception appears. |
36 * | 34 * |
37 * This event allows you to create a response for a thrown exception or | 35 * This event allows you to create a response for a thrown exception or |
38 * to modify the thrown exception. | 36 * to modify the thrown exception. |
39 * | 37 * |
40 * @Event("Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent") | 38 * @Event("Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent") |
41 * | |
42 * @var string | |
43 */ | 39 */ |
44 const EXCEPTION = 'kernel.exception'; | 40 const EXCEPTION = 'kernel.exception'; |
45 | 41 |
46 /** | 42 /** |
47 * The VIEW event occurs when the return value of a controller | 43 * The VIEW event occurs when the return value of a controller |
49 * | 45 * |
50 * This event allows you to create a response for the return value of the | 46 * This event allows you to create a response for the return value of the |
51 * controller. | 47 * controller. |
52 * | 48 * |
53 * @Event("Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent") | 49 * @Event("Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent") |
54 * | |
55 * @var string | |
56 */ | 50 */ |
57 const VIEW = 'kernel.view'; | 51 const VIEW = 'kernel.view'; |
58 | 52 |
59 /** | 53 /** |
60 * The CONTROLLER event occurs once a controller was found for | 54 * The CONTROLLER event occurs once a controller was found for |
62 * | 56 * |
63 * This event allows you to change the controller that will handle the | 57 * This event allows you to change the controller that will handle the |
64 * request. | 58 * request. |
65 * | 59 * |
66 * @Event("Symfony\Component\HttpKernel\Event\FilterControllerEvent") | 60 * @Event("Symfony\Component\HttpKernel\Event\FilterControllerEvent") |
67 * | |
68 * @var string | |
69 */ | 61 */ |
70 const CONTROLLER = 'kernel.controller'; | 62 const CONTROLLER = 'kernel.controller'; |
71 | 63 |
72 /** | 64 /** |
73 * The CONTROLLER_ARGUMENTS event occurs once controller arguments have been resolved. | 65 * The CONTROLLER_ARGUMENTS event occurs once controller arguments have been resolved. |
74 * | 66 * |
75 * This event allows you to change the arguments that will be passed to | 67 * This event allows you to change the arguments that will be passed to |
76 * the controller. | 68 * the controller. |
77 * | 69 * |
78 * @Event("Symfony\Component\HttpKernel\Event\FilterControllerArgumentsEvent") | 70 * @Event("Symfony\Component\HttpKernel\Event\FilterControllerArgumentsEvent") |
79 * | |
80 * @var string | |
81 */ | 71 */ |
82 const CONTROLLER_ARGUMENTS = 'kernel.controller_arguments'; | 72 const CONTROLLER_ARGUMENTS = 'kernel.controller_arguments'; |
83 | 73 |
84 /** | 74 /** |
85 * The RESPONSE event occurs once a response was created for | 75 * The RESPONSE event occurs once a response was created for |
87 * | 77 * |
88 * This event allows you to modify or replace the response that will be | 78 * This event allows you to modify or replace the response that will be |
89 * replied. | 79 * replied. |
90 * | 80 * |
91 * @Event("Symfony\Component\HttpKernel\Event\FilterResponseEvent") | 81 * @Event("Symfony\Component\HttpKernel\Event\FilterResponseEvent") |
92 * | |
93 * @var string | |
94 */ | 82 */ |
95 const RESPONSE = 'kernel.response'; | 83 const RESPONSE = 'kernel.response'; |
96 | 84 |
97 /** | 85 /** |
98 * The TERMINATE event occurs once a response was sent. | 86 * The TERMINATE event occurs once a response was sent. |
99 * | 87 * |
100 * This event allows you to run expensive post-response jobs. | 88 * This event allows you to run expensive post-response jobs. |
101 * | 89 * |
102 * @Event("Symfony\Component\HttpKernel\Event\PostResponseEvent") | 90 * @Event("Symfony\Component\HttpKernel\Event\PostResponseEvent") |
103 * | |
104 * @var string | |
105 */ | 91 */ |
106 const TERMINATE = 'kernel.terminate'; | 92 const TERMINATE = 'kernel.terminate'; |
107 | 93 |
108 /** | 94 /** |
109 * The FINISH_REQUEST event occurs when a response was generated for a request. | 95 * The FINISH_REQUEST event occurs when a response was generated for a request. |
110 * | 96 * |
111 * This event allows you to reset the global and environmental state of | 97 * This event allows you to reset the global and environmental state of |
112 * the application, when it was changed during the request. | 98 * the application, when it was changed during the request. |
113 * | 99 * |
114 * @Event("Symfony\Component\HttpKernel\Event\FinishRequestEvent") | 100 * @Event("Symfony\Component\HttpKernel\Event\FinishRequestEvent") |
115 * | |
116 * @var string | |
117 */ | 101 */ |
118 const FINISH_REQUEST = 'kernel.finish_request'; | 102 const FINISH_REQUEST = 'kernel.finish_request'; |
119 } | 103 } |