mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Response WIP
This commit is contained in:
@ -13,6 +13,9 @@ namespace yii\base;
|
||||
*/
|
||||
class Response extends Component
|
||||
{
|
||||
const EVENT_BEGIN_RESPONSE = 'beginResponse';
|
||||
const EVENT_END_RESPONSE = 'endResponse';
|
||||
|
||||
/**
|
||||
* Starts output buffering
|
||||
*/
|
||||
@ -56,4 +59,14 @@ class Response extends Component
|
||||
ob_end_clean();
|
||||
}
|
||||
}
|
||||
|
||||
public function begin()
|
||||
{
|
||||
$this->trigger(self::EVENT_BEGIN_RESPONSE);
|
||||
}
|
||||
|
||||
public function end()
|
||||
{
|
||||
$this->trigger(self::EVENT_END_RESPONSE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user