Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429476
StaticBasicAuthorizer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
StaticBasicAuthorizer.php
View Options
<?php
namespace
MediaWiki\Rest\BasicAccess
;
use
MediaWiki\Rest\Handler
;
use
MediaWiki\Rest\RequestInterface
;
/**
* An authorizer which returns a value from authorize() which is given in the constructor.
*
* @internal
*/
class
StaticBasicAuthorizer
implements
BasicAuthorizerInterface
{
/** @var string|null */
private
$value
;
/**
* @see BasicAuthorizerInterface::authorize()
*
* @param string|null $value The value returned by authorize(). If the
* request is denied, this is the string error code. If the request is
* allowed, it is null.
*/
public
function
__construct
(
$value
=
null
)
{
$this
->
value
=
$value
;
}
public
function
authorize
(
RequestInterface
$request
,
Handler
$handler
)
{
return
$this
->
value
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 17:38 (9 h, 32 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a1/5c/e3847b068d158822ac05d90f0185
Default Alt Text
StaticBasicAuthorizer.php (751 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment