Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 128 lines (118 sloc) 3.318 kb
601bc18 @webmozart Replaced EventDispatcher by Doctrine's EventManager implementation
webmozart authored
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
d568c66 @fabpot fixed phpdoc
fabpot authored
6 * (c) Fabien Potencier <fabien@symfony.com>
601bc18 @webmozart Replaced EventDispatcher by Doctrine's EventManager implementation
webmozart authored
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\HttpKernel;
13
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
14 /**
c35fc32 @GrahamCampbell [2.3] CS And DocBlock Fixes
GrahamCampbell authored
15 * Contains all events thrown in the HttpKernel component.
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
16 *
7fbfa07 @webmozart Fixing email
webmozart authored
17 * @author Bernhard Schussek <bschussek@gmail.com>
ac27df3 @fabpot [HttpKernel] tagged public @api
fabpot authored
18 *
19 * @api
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
20 */
cd7b345 @Seldaek Renamed core.* events to kernel.* and CoreEvents to KernelEvents
Seldaek authored
21 final class KernelEvents
601bc18 @webmozart Replaced EventDispatcher by Doctrine's EventManager implementation
webmozart authored
22 {
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
23 /**
16af349 @fabpot renamed constants to upper cased
fabpot authored
24 * The REQUEST event occurs at the very beginning of request
c35fc32 @GrahamCampbell [2.3] CS And DocBlock Fixes
GrahamCampbell authored
25 * dispatching.
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
26 *
27 * This event allows you to create a response for a request before any
28 * other code in the framework is executed. The event listener method
29 * receives a Symfony\Component\HttpKernel\Event\GetResponseEvent
30 * instance.
31 *
8dbeefa @dawehner Add machine readable events
dawehner authored
32 * @Event
33 *
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
34 * @var string
ac27df3 @fabpot [HttpKernel] tagged public @api
fabpot authored
35 *
36 * @api
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
37 */
cd7b345 @Seldaek Renamed core.* events to kernel.* and CoreEvents to KernelEvents
Seldaek authored
38 const REQUEST = 'kernel.request';
601bc18 @webmozart Replaced EventDispatcher by Doctrine's EventManager implementation
webmozart authored
39
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
40 /**
c35fc32 @GrahamCampbell [2.3] CS And DocBlock Fixes
GrahamCampbell authored
41 * The EXCEPTION event occurs when an uncaught exception appears.
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
42 *
43 * This event allows you to create a response for a thrown exception or
44 * to modify the thrown exception. The event listener method receives
45 * a Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
46 * instance.
47 *
8dbeefa @dawehner Add machine readable events
dawehner authored
48 * @Event
49 *
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
50 * @var string
ac27df3 @fabpot [HttpKernel] tagged public @api
fabpot authored
51 *
52 * @api
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
53 */
cd7b345 @Seldaek Renamed core.* events to kernel.* and CoreEvents to KernelEvents
Seldaek authored
54 const EXCEPTION = 'kernel.exception';
601bc18 @webmozart Replaced EventDispatcher by Doctrine's EventManager implementation
webmozart authored
55
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
56 /**
16af349 @fabpot renamed constants to upper cased
fabpot authored
57 * The VIEW event occurs when the return value of a controller
c35fc32 @GrahamCampbell [2.3] CS And DocBlock Fixes
GrahamCampbell authored
58 * is not a Response instance.
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
59 *
60 * This event allows you to create a response for the return value of the
61 * controller. The event listener method receives a
62 * Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent
63 * instance.
64 *
8dbeefa @dawehner Add machine readable events
dawehner authored
65 * @Event
66 *
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
67 * @var string
ac27df3 @fabpot [HttpKernel] tagged public @api
fabpot authored
68 *
69 * @api
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
70 */
cd7b345 @Seldaek Renamed core.* events to kernel.* and CoreEvents to KernelEvents
Seldaek authored
71 const VIEW = 'kernel.view';
601bc18 @webmozart Replaced EventDispatcher by Doctrine's EventManager implementation
webmozart authored
72
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
73 /**
16af349 @fabpot renamed constants to upper cased
fabpot authored
74 * The CONTROLLER event occurs once a controller was found for
c35fc32 @GrahamCampbell [2.3] CS And DocBlock Fixes
GrahamCampbell authored
75 * handling a request.
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
76 *
77 * This event allows you to change the controller that will handle the
78 * request. The event listener method receives a
79 * Symfony\Component\HttpKernel\Event\FilterControllerEvent instance.
80 *
8dbeefa @dawehner Add machine readable events
dawehner authored
81 * @Event
82 *
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
83 * @var string
ac27df3 @fabpot [HttpKernel] tagged public @api
fabpot authored
84 *
85 * @api
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
86 */
cd7b345 @Seldaek Renamed core.* events to kernel.* and CoreEvents to KernelEvents
Seldaek authored
87 const CONTROLLER = 'kernel.controller';
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
88
89 /**
16af349 @fabpot renamed constants to upper cased
fabpot authored
90 * The RESPONSE event occurs once a response was created for
c35fc32 @GrahamCampbell [2.3] CS And DocBlock Fixes
GrahamCampbell authored
91 * replying to a request.
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
92 *
93 * This event allows you to modify or replace the response that will be
94 * replied. The event listener method receives a
95 * Symfony\Component\HttpKernel\Event\FilterResponseEvent instance.
96 *
8dbeefa @dawehner Add machine readable events
dawehner authored
97 * @Event
98 *
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
99 * @var string
ac27df3 @fabpot [HttpKernel] tagged public @api
fabpot authored
100 *
101 * @api
fccc7b1 @webmozart [HttpKernel] Added more code documentation to the HttpKernel events
webmozart authored
102 */
cd7b345 @Seldaek Renamed core.* events to kernel.* and CoreEvents to KernelEvents
Seldaek authored
103 const RESPONSE = 'kernel.response';
dcf820d @Seldaek [HttpKernel] Add Kernel::terminate() and HttpKernel::terminate() for pos...
Seldaek authored
104
105 /**
c35fc32 @GrahamCampbell [2.3] CS And DocBlock Fixes
GrahamCampbell authored
106 * The TERMINATE event occurs once a response was sent.
dcf820d @Seldaek [HttpKernel] Add Kernel::terminate() and HttpKernel::terminate() for pos...
Seldaek authored
107 *
108 * This event allows you to run expensive post-response jobs.
109 * The event listener method receives a
110 * Symfony\Component\HttpKernel\Event\PostResponseEvent instance.
111 *
8dbeefa @dawehner Add machine readable events
dawehner authored
112 * @Event
113 *
dcf820d @Seldaek [HttpKernel] Add Kernel::terminate() and HttpKernel::terminate() for pos...
Seldaek authored
114 * @var string
115 */
116 const TERMINATE = 'kernel.terminate';
10103e0 @beberlei added a RequestStack class
beberlei authored
117
118 /**
e3c56a4 @issei-m updated doc
issei-m authored
119 * The FINISH_REQUEST event occurs when a response was generated for a request.
10103e0 @beberlei added a RequestStack class
beberlei authored
120 *
121 * This event allows you to reset the global and environmental state of
122 * the application, when it was changed during the request.
123 *
124 * @var string
125 */
e037bbf @fabpot [HttpKernel] renamed the kernel finished event
fabpot authored
126 const FINISH_REQUEST = 'kernel.finish_request';
16af349 @fabpot renamed constants to upper cased
fabpot authored
127 }
Something went wrong with that request. Please try again.