You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1001 B
39 lines
1001 B
<?php |
|
/** |
|
* @link http://www.yiiframework.com/ |
|
* @copyright Copyright (c) 2008 Yii Software LLC |
|
* @license http://www.yiiframework.com/license/ |
|
*/ |
|
|
|
namespace yii\web; |
|
|
|
use yii\base\Event; |
|
|
|
/** |
|
* ResponseEvent represents the event data for the [[Application::EVENT_RESPONSE]] event. |
|
* |
|
* Event handlers can modify the content in [[response]] or replace [[response]] |
|
* with a new response object. The updated or new response will |
|
* be used as the final out of the application. |
|
* |
|
* @author Qiang Xue <qiang.xue@gmail.com> |
|
* @since 2.0 |
|
*/ |
|
class ResponseEvent extends Event |
|
{ |
|
/** |
|
* @var Response the response object associated with this event. |
|
*/ |
|
public $response; |
|
|
|
/** |
|
* Constructor. |
|
* @param Response $response the response object associated with this event. |
|
* @param array $config the configuration array for initializing the newly created object. |
|
*/ |
|
public function __construct($response, $config = []) |
|
{ |
|
$this->response = $response; |
|
parent::__construct($config); |
|
} |
|
}
|
|
|