Browse Source

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

tags/2.0.34
Brandon Kelly 5 years ago committed by GitHub
parent
commit
f8d417c42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      framework/web/Response.php

6
framework/web/Response.php

@ -62,15 +62,15 @@ use yii\helpers\Url;
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';
/**
* @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';
/**
* @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.
*/
const EVENT_AFTER_PREPARE = 'afterPrepare';

Loading…
Cancel
Save