|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\ValidatorFactory $validatorFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Stdlib\StringUtils $stringHelper, \Magento\Framework\App\RequestInterface $request, Filesystem $filesystem, DeploymentConfig $deploymentConfig, $scopeType, $lifetimePath=self::XML_PATH_COOKIE_LIFETIME) | |
| setOptions ($options, $default=[]) | |
| getOptions () | |
| setOption ($option, $value) | |
| getOption ($option) | |
| toArray () | |
| setName ($name, $default=null) | |
| getName () | |
| setSavePath ($savePath) | |
| getSavePath () | |
| setCookieLifetime ($cookieLifetime, $default=null) | |
| getCookieLifetime () | |
| setCookiePath ($cookiePath, $default=null) | |
| getCookiePath () | |
| setCookieDomain ($cookieDomain, $default=null) | |
| getCookieDomain () | |
| setCookieSecure ($cookieSecure) | |
| getCookieSecure () | |
| setCookieHttpOnly ($cookieHttpOnly) | |
| getCookieHttpOnly () | |
| setUseCookies ($useCookies) | |
| getUseCookies () | |
| __call ($method, $args) | |
Public Member Functions inherited from ConfigInterface | |
| setOptions ($options) | |
| setName ($name) | |
| setCookieLifetime ($cookieLifetime) | |
| setCookiePath ($cookiePath) | |
| setCookieDomain ($cookieDomain) | |
Data Fields | |
| const | PARAM_SESSION_SAVE_METHOD = 'session/save' |
| const | PARAM_SESSION_SAVE_PATH = 'session/save_path' |
| const | PARAM_SESSION_CACHE_LIMITER = 'session/cache_limiter' |
| const | XML_PATH_COOKIE_DOMAIN = 'web/cookie/cookie_domain' |
| const | XML_PATH_COOKIE_LIFETIME = 'web/cookie/cookie_lifetime' |
| const | XML_PATH_COOKIE_HTTPONLY = 'web/cookie/cookie_httponly' |
| const | XML_PATH_COOKIE_PATH = 'web/cookie/cookie_path' |
| const | COOKIE_LIFETIME_DEFAULT = 3600 |
Protected Member Functions | |
| getStorageOption ($option) | |
| getFixedOptionName ($option) | |
Protected Attributes | |
| $options = [] | |
| $_scopeConfig | |
| $_stringHelper | |
| $_httpRequest | |
| $booleanOptions | |
| $_scopeType | |
| $lifetimePath | |
| $_validatorFactory | |
Magento session configuration
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 20 of file Config.php.
| __construct | ( | \Magento\Framework\ValidatorFactory | $validatorFactory, |
| \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, | ||
| \Magento\Framework\Stdlib\StringUtils | $stringHelper, | ||
| \Magento\Framework\App\RequestInterface | $request, | ||
| Filesystem | $filesystem, | ||
| DeploymentConfig | $deploymentConfig, | ||
| $scopeType, | |||
$lifetimePath = self::XML_PATH_COOKIE_LIFETIME |
|||
| ) |
| \Magento\Framework\ValidatorFactory | $validatorFactory | |
| \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
| \Magento\Framework\Stdlib\StringUtils | $stringHelper | |
| \Magento\Framework\App\RequestInterface | $request | |
| Filesystem | $filesystem | |
| DeploymentConfig | $deploymentConfig | |
| string | $scopeType | |
| string | $lifetimePath | @SuppressWarnings(PHPMD.NPathComplexity) |
Session path
Session save handler - memcache, files, etc
Session cache limiter
Cookie settings: lifetime, path, domain, httpOnly. These govern settings for the session cookie.
Definition at line 106 of file Config.php.
| __call | ( | $method, | |
| $args | |||
| ) |
Intercept get*() and set*() methods
Intercepts getters and setters and passes them to getOption() and setOption(), respectively.
| string | $method | |
| array | $args |
Definition at line 523 of file Config.php.
| getCookieDomain | ( | ) |
Get session.cookie_domain
Implements ConfigInterface.
Definition at line 398 of file Config.php.
| getCookieHttpOnly | ( | ) |
Get session.cookie_httponly
Implements ConfigInterface.
Definition at line 444 of file Config.php.
| getCookieLifetime | ( | ) |
Get session.cookie_lifetime
Implements ConfigInterface.
Definition at line 333 of file Config.php.
| getCookiePath | ( | ) |
Get session.cookie_path
Implements ConfigInterface.
Definition at line 366 of file Config.php.
| getCookieSecure | ( | ) |
Get session.cookie_secure
Implements ConfigInterface.
Definition at line 421 of file Config.php.
|
protected |
Fix session option name
| string | $option |
Definition at line 494 of file Config.php.
| getName | ( | ) |
Get session.name
Implements ConfigInterface.
Definition at line 279 of file Config.php.
| getOption | ( | $option | ) |
Get an individual option
| string | $option |
Implements ConfigInterface.
Definition at line 230 of file Config.php.
| getOptions | ( | ) |
Get all options set
Implements ConfigInterface.
Definition at line 204 of file Config.php.
| getSavePath | ( | ) |
Set session.save_path
Implements ConfigInterface.
Definition at line 301 of file Config.php.
|
protected |
Retrieve a storage option from a backend configuration store
| string | $option |
Definition at line 478 of file Config.php.
| getUseCookies | ( | ) |
Get session.use_cookies
Implements ConfigInterface.
Definition at line 467 of file Config.php.
| setCookieDomain | ( | $cookieDomain, | |
$default = null |
|||
| ) |
Set session.cookie_domain
| string | $cookieDomain | |
| string | null | $default |
Definition at line 378 of file Config.php.
| setCookieHttpOnly | ( | $cookieHttpOnly | ) |
Set session.cookie_httponly
| bool | $cookieHttpOnly |
Implements ConfigInterface.
Definition at line 432 of file Config.php.
| setCookieLifetime | ( | $cookieLifetime, | |
$default = null |
|||
| ) |
Set session.cookie_lifetime
| int | $cookieLifetime | |
| int | null | $default |
Definition at line 313 of file Config.php.
| setCookiePath | ( | $cookiePath, | |
$default = null |
|||
| ) |
Set session.cookie_path
| string | $cookiePath | |
| string | null | $default |
Definition at line 345 of file Config.php.
| setCookieSecure | ( | $cookieSecure | ) |
Set session.cookie_secure
| bool | $cookieSecure |
Implements ConfigInterface.
Definition at line 409 of file Config.php.
| setName | ( | $name, | |
$default = null |
|||
| ) |
Set session.name
| string | $name | |
| string | null | $default |
Definition at line 263 of file Config.php.
| setOption | ( | $option, | |
| $value | |||
| ) |
Set an individual option
| string | $option | |
| mixed | $value |
Implements ConfigInterface.
Definition at line 216 of file Config.php.
| setOptions | ( | $options, | |
$default = [] |
|||
| ) |
Set many options at once
| array | $options | |
| array | $default |
Definition at line 183 of file Config.php.
| setSavePath | ( | $savePath | ) |
Set session.save_path
| string | $savePath |
Implements ConfigInterface.
Definition at line 290 of file Config.php.
| setUseCookies | ( | $useCookies | ) |
Set session.use_cookies
| bool | $useCookies |
Implements ConfigInterface.
Definition at line 455 of file Config.php.
| toArray | ( | ) |
Convert config to array
Implements ConfigInterface.
Definition at line 251 of file Config.php.
|
protected |
Definition at line 66 of file Config.php.
|
protected |
Definition at line 56 of file Config.php.
|
protected |
Definition at line 83 of file Config.php.
|
protected |
Definition at line 61 of file Config.php.
|
protected |
Definition at line 93 of file Config.php.
|
protected |
Definition at line 73 of file Config.php.
|
protected |
Definition at line 88 of file Config.php.
|
protected |
Definition at line 51 of file Config.php.
| const COOKIE_LIFETIME_DEFAULT = 3600 |
Cookie default lifetime
Definition at line 44 of file Config.php.
| const PARAM_SESSION_CACHE_LIMITER = 'session/cache_limiter' |
Configuration path for session cache limiter
Definition at line 29 of file Config.php.
| const PARAM_SESSION_SAVE_METHOD = 'session/save' |
Configuration path for session save method
Definition at line 23 of file Config.php.
| const PARAM_SESSION_SAVE_PATH = 'session/save_path' |
Configuration path for session save path
Definition at line 26 of file Config.php.
| const XML_PATH_COOKIE_DOMAIN = 'web/cookie/cookie_domain' |
Configuration path for cookie domain
Definition at line 32 of file Config.php.
| const XML_PATH_COOKIE_HTTPONLY = 'web/cookie/cookie_httponly' |
Configuration path for cookie http only param
Definition at line 38 of file Config.php.
| const XML_PATH_COOKIE_LIFETIME = 'web/cookie/cookie_lifetime' |
Configuration path for cookie lifetime
Definition at line 35 of file Config.php.
| const XML_PATH_COOKIE_PATH = 'web/cookie/cookie_path' |
Configuration path for cookie path
Definition at line 41 of file Config.php.