MediaWiki master
MediaWiki\Session\SessionProviderInterface Interface Reference

This exists to make IDEs happy, so they don't see the internal-but-required-to-be-public methods on SessionProvider. More...

Inherited by MediaWiki\Session\SessionProvider.

Public Member Functions

 canAlwaysAutocreate ()
 Returns true if this provider is exempt from autocreate user permissions check.
 
 describe (Language $lang)
 Return an identifier for this session type.
 
 safeAgainstCsrf ()
 Returns true if this provider is safe against csrf attacks, or false otherwise.
 
 whyNoSession ()
 Return a Message for why sessions might not be being persisted.
 

Detailed Description

This exists to make IDEs happy, so they don't see the internal-but-required-to-be-public methods on SessionProvider.

Since
1.27

Definition at line 36 of file SessionProviderInterface.php.

Member Function Documentation

◆ canAlwaysAutocreate()

MediaWiki\Session\SessionProviderInterface::canAlwaysAutocreate ( )

Returns true if this provider is exempt from autocreate user permissions check.

Returns
bool
Since
1.42

Implemented in MediaWiki\Session\SessionProvider.

◆ describe()

MediaWiki\Session\SessionProviderInterface::describe ( Language $lang)

Return an identifier for this session type.

Parameters
Language$langLanguage to use.
Returns
string

Implemented in MediaWiki\Session\SessionProvider.

◆ safeAgainstCsrf()

MediaWiki\Session\SessionProviderInterface::safeAgainstCsrf ( )

Returns true if this provider is safe against csrf attacks, or false otherwise.

Returns
bool

Implemented in MediaWiki\Session\SessionProvider.

◆ whyNoSession()

MediaWiki\Session\SessionProviderInterface::whyNoSession ( )

Return a Message for why sessions might not be being persisted.

For example, "check whether you're blocking our cookies".

Returns
Message|null

Implemented in MediaWiki\Session\CookieSessionProvider, MediaWiki\Session\ImmutableSessionProviderWithCookie, and MediaWiki\Session\SessionProvider.


The documentation for this interface was generated from the following file: