Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P15882
(An Untitled Masterwork)
Active
Public
Actions
Authored by
daniel
on May 10 2021, 9:35 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F34448941: raw-paste-data.txt
May 10 2021, 9:35 AM
2021-05-10 09:35:48 (UTC+0)
Subscribers
None
/**
* @param ServiceOptions $options
* @param LoggerInterface $logger
* @param ActorStoreFactory $actorStoreFactory
* @param BlockRestrictionStore $blockRestrictionStore
* @param CommentStore $commentStore
* @param HookContainer $hookContainer
* @param ILoadBalancer $loadBalancer
* @param ReadOnlyMode $readOnlyMode
*/
public
function
__construct
(
ServiceOptions
$options
,
LoggerInterface
$logger
,
$actorStoreFactory
,
BlockRestrictionStore
$blockRestrictionStore
,
CommentStore
$commentStore
,
HookContainer
$hookContainer
,
ILoadBalancer
$loadBalancer
,
ReadOnlyMode
$readOnlyMode
)
{
$options
->
assertRequiredOptions
(
self
::
CONSTRUCTOR_OPTIONS
);
$this
->
options
=
$options
;
$this
->
logger
=
$logger
;
$this
->
actorNormalization
=
$actorNormalization
;
$this
->
blockRestrictionStore
=
$blockRestrictionStore
;
$this
->
commentStore
=
$commentStore
;
$this
->
hookRunner
=
new
HookRunner
(
$hookContainer
);
$this
->
loadBalancer
=
$loadBalancer
;
$this
->
readOnlyMode
=
$readOnlyMode
;
if
(
$actorStoreFactory
insteanceof
ActorStoreFactory
)
{
$this
->
actorStoreFactory
=
$actorStoreFactory
;
}
else
{
$this
->
actorStoreFactory
=
MediaWikiServices
::
getInstance
()->
getActorStoreFactory
();
}
}
Event Timeline
daniel
created this paste.
May 10 2021, 9:35 AM
2021-05-10 09:35:48 (UTC+0)
Log In to Comment