init
This commit is contained in:
29
vendor/yiisoft/yii2/web/HeadersAlreadySentException.php
vendored
Normal file
29
vendor/yiisoft/yii2/web/HeadersAlreadySentException.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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\Exception;
|
||||
|
||||
/**
|
||||
* HeadersAlreadySentException represents an exception caused by
|
||||
* any headers that were already sent before web response was sent.
|
||||
*
|
||||
* @author Dmitry Dorogin <dmirogin@ya.ru>
|
||||
* @since 2.0.14
|
||||
*/
|
||||
class HeadersAlreadySentException extends Exception
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function __construct($file, $line)
|
||||
{
|
||||
$message = YII_DEBUG ? "Headers already sent in {$file} on line {$line}." : 'Headers already sent.';
|
||||
parent::__construct($message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user