Add visibility for all class elements (#20557)

This commit is contained in:
Maksim Spirkov
2025-10-02 02:27:23 +04:00
committed by GitHub
parent 813dfc07cc
commit c82da8dc82
73 changed files with 328 additions and 331 deletions

View File

@ -24,7 +24,7 @@ class Cookie extends \yii\base\BaseObject
* When a user follows a link from https://otherdomain.com to https://yourdomain.com it will include the cookie
* @see sameSite
*/
const SAME_SITE_LAX = 'Lax';
public const SAME_SITE_LAX = 'Lax';
/**
* SameSite policy Strict will prevent the cookie from being sent by the browser in all cross-site browsing context
* regardless of the request method and even when following a regular link.
@ -32,7 +32,7 @@ class Cookie extends \yii\base\BaseObject
* https://otherdomain.com to https://yourdomain.com will not include the cookie.
* @see sameSite
*/
const SAME_SITE_STRICT = 'Strict';
public const SAME_SITE_STRICT = 'Strict';
/**
* SameSite policy None disables the SameSite policy so cookies will be sent in all contexts,
* i.e in responses to both first-party and cross-origin requests.
@ -42,7 +42,7 @@ class Cookie extends \yii\base\BaseObject
* @see secure
* @since 2.0.43
*/
const SAME_SITE_NONE = 'None';
public const SAME_SITE_NONE = 'None';
/**
* @var string name of the cookie