Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103264674
PhabricatorExtendingPhabricatorConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 28, 16:30
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Mar 2, 16:30 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24530634
Attached To
rPH Phabricator
PhabricatorExtendingPhabricatorConfigOptions.php
View Options
<?php
final
class
PhabricatorExtendingPhabricatorConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
"Extending Phabricator"
);
}
public
function
getDescription
()
{
return
pht
(
"Make Phabricator even cooler!"
);
}
public
function
getOptions
()
{
return
array
(
$this
->
newOption
(
'load-libraries'
,
'list<string>'
,
array
())
->
setLocked
(
true
)
->
setSummary
(
pht
(
"Paths to additional phutil libraries to load."
))
->
addExample
(
'/srv/our-libs/sekrit-phutil'
,
pht
(
'Valid Setting'
)),
$this
->
newOption
(
'events.listeners'
,
'list<string>'
,
array
())
->
setLocked
(
true
)
->
setSummary
(
pht
(
"Listeners receive callbacks when interesting things occur."
))
->
setDescription
(
pht
(
"You can respond to various application events by installing "
.
"listeners, which will receive callbacks when interesting things "
.
"occur. Specify a list of classes which extend "
.
"PhabricatorEventListener here."
))
->
addExample
(
'MyEventListener'
,
pht
(
'Valid Setting'
)),
$this
->
newOption
(
'aphront.default-application-configuration-class'
,
'class'
,
'AphrontDefaultApplicationConfiguration'
)
->
setBaseClass
(
'AphrontApplicationConfiguration'
)
// TODO: This could probably use some better documentation.
->
setDescription
(
pht
(
"Application configuration class."
)),
);
}
}
Event Timeline
Log In to Comment