Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1427670
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
Sat, May 16, 14:56 (20 h, 5 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
01/1d/33f77e61a014a06d8ca3000bf5f2
Default Alt Text
OAuthServices.php (832 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment