pluf2

pluf2 Commit Details


Date:2009-01-07 08:26:24 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:94670952d43e1a7a59cf0f18919e4ba8ded54021
Parents: aee1ad5a3647d44142b19a5f42792314643b274a
Message:Added a post rendering hook in the dispatcher.

Changes:

File differences

src/Pluf/Dispatcher.php
7676
7777
7878
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
79104
80105
81106
}
$response->render($req->method != 'HEAD' and !defined('IN_UNIT_TESTS'));
}
/**
* [signal]
*
* Pluf_Dispatcher::postDispatch
*
* [sender]
*
* Pluf_Dispatcher
*
* [description]
*
* This signal is sent after the rendering of a request. This
* means you cannot affect the response but you can use this
* hook to do some cleaning.
*
* [parameters]
*
* array('request' => $request,
* 'response' => $response)
*
*/
$params = array('request' => $req,
'response' => $response);
Pluf_Signal::send('Pluf_Dispatcher::postDispatch',
'Pluf_Dispatcher', $params);
return array($req, $response);
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05760s using 13 queries.