Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4141896
OAuthServices.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
832 B
Referenced Files
None
Subscribers
None
OAuthServices.php
View Options
<?php
namespace
MediaWiki\Extension\OAuth
;
use
MediaWiki\Config\Config
;
use
MediaWiki\Extension\OAuth\Control\Workflow
;
use
MediaWiki\MediaWikiServices
;
class
OAuthServices
{
/** @var MediaWikiServices */
private
$coreServices
;
/**
* @param MediaWikiServices $coreServices
*/
public
function
__construct
(
MediaWikiServices
$coreServices
)
{
$this
->
coreServices
=
$coreServices
;
}
/**
* Static version of the constructor, for nicer syntax.
* @param MediaWikiServices $coreServices
* @return static
*/
public
static
function
wrap
(
MediaWikiServices
$coreServices
)
{
return
new
static
(
$coreServices
);
}
public
function
getConfig
():
Config
{
return
$this
->
coreServices
->
get
(
'OAuthConfig'
);
}
public
function
getWorkflow
():
Workflow
{
return
$this
->
coreServices
->
get
(
'OAuthWorkflow'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 16:09 (4 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2d/f8/af1258315c280f8092cbbf98506d
Default Alt Text
OAuthServices.php (832 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment