mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 09:28:37 +08:00
Add visibility for all class elements (#20557)
This commit is contained in:
@ -94,12 +94,12 @@ class Request extends \yii\base\Request
|
||||
/**
|
||||
* Default name of the HTTP header for sending CSRF token.
|
||||
*/
|
||||
const CSRF_HEADER = 'X-CSRF-Token';
|
||||
public const CSRF_HEADER = 'X-CSRF-Token';
|
||||
/**
|
||||
* The length of the CSRF token mask.
|
||||
* @deprecated since 2.0.12. The mask length is now equal to the token length.
|
||||
*/
|
||||
const CSRF_MASK_LENGTH = 8;
|
||||
public const CSRF_MASK_LENGTH = 8;
|
||||
|
||||
/**
|
||||
* @var bool whether to enable CSRF (Cross-Site Request Forgery) validation. Defaults to true.
|
||||
|
||||
Reference in New Issue
Block a user