Fixed usage of non-existing ResponseEvent in yii\web\Response docs (#17939)

This commit is contained in:
Brandon Kelly
2020-03-26 05:45:39 -07:00
committed by GitHub
parent 7a5e51e9be
commit f8d417c42a

View File

@@ -62,15 +62,15 @@ use yii\helpers\Url;
class Response extends \yii\base\Response class Response extends \yii\base\Response
{ {
/** /**
* @event ResponseEvent an event that is triggered at the beginning of [[send()]]. * @event \yii\base\Event an event that is triggered at the beginning of [[send()]].
*/ */
const EVENT_BEFORE_SEND = 'beforeSend'; const EVENT_BEFORE_SEND = 'beforeSend';
/** /**
* @event ResponseEvent an event that is triggered at the end of [[send()]]. * @event \yii\base\Event an event that is triggered at the end of [[send()]].
*/ */
const EVENT_AFTER_SEND = 'afterSend'; const EVENT_AFTER_SEND = 'afterSend';
/** /**
* @event ResponseEvent an event that is triggered right after [[prepare()]] is called in [[send()]]. * @event \yii\base\Event an event that is triggered right after [[prepare()]] is called in [[send()]].
* You may respond to this event to filter the response content before it is sent to the client. * You may respond to this event to filter the response content before it is sent to the client.
*/ */
const EVENT_AFTER_PREPARE = 'afterPrepare'; const EVENT_AFTER_PREPARE = 'afterPrepare';