MediaWiki
master
SessionProviderInterface.php
Go to the documentation of this file.
1
<?php
24
namespace
MediaWiki\Session
;
25
26
use
MediaWiki\Language\Language
;
27
use
MediaWiki\Message\Message
;
28
36
interface
SessionProviderInterface
{
37
44
public
function
describe
(
Language
$lang );
45
53
public
function
whyNoSession
();
54
60
public
function
safeAgainstCsrf
();
61
68
public
function
canAlwaysAutocreate
(): bool;
69
}
MediaWiki\Language\Language
Base class for language-specific code.
Definition
Language.php:80
MediaWiki\Message\Message
The Message class deals with fetching and processing of interface message into a variety of formats.
Definition
Message.php:155
MediaWiki\Session\SessionProviderInterface
This exists to make IDEs happy, so they don't see the internal-but-required-to-be-public methods on S...
Definition
SessionProviderInterface.php:36
MediaWiki\Session\SessionProviderInterface\describe
describe(Language $lang)
Return an identifier for this session type.
MediaWiki\Session\SessionProviderInterface\canAlwaysAutocreate
canAlwaysAutocreate()
Returns true if this provider is exempt from autocreate user permissions check.
MediaWiki\Session\SessionProviderInterface\safeAgainstCsrf
safeAgainstCsrf()
Returns true if this provider is safe against csrf attacks, or false otherwise.
MediaWiki\Session\SessionProviderInterface\whyNoSession
whyNoSession()
Return a Message for why sessions might not be being persisted.
MediaWiki\Session
Definition
BotPasswordSessionProvider.php:24
includes
session
SessionProviderInterface.php
Generated on Fri Dec 6 2024 15:25:36 for MediaWiki by
1.10.0