Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F555010
PhabricatorHeraldApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
PhabricatorHeraldApplication.php
View Options
<?php
final
class
PhabricatorHeraldApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/herald/'
;
}
public
function
getIcon
()
{
return
'fa-bullhorn'
;
}
public
function
getName
()
{
return
pht
(
'Herald'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Create Notification Rules'
);
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
98
\x
BF"
;
}
public
function
getHelpDocumentationArticles
(
PhabricatorUser
$viewer
)
{
return
array
(
array
(
'name'
=>
pht
(
'Herald User Guide'
),
'href'
=>
PhabricatorEnv
::
getDoclink
(
'Herald User Guide'
),
),
array
(
'name'
=>
pht
(
'User Guide: Webhooks'
),
'href'
=>
PhabricatorEnv
::
getDoclink
(
'User Guide: Webhooks'
),
),
);
}
public
function
getFlavorText
()
{
return
pht
(
'Watch for danger!'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
HeraldRemarkupRule
(),
);
}
public
function
getMonograms
()
{
return
array
(
'H'
);
}
public
function
getRoutes
()
{
return
array
(
'/H(?P<id>[1-9]
\d
*)'
=>
'HeraldRuleViewController'
,
'/herald/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'HeraldRuleListController'
,
'new/'
=>
'HeraldNewController'
,
'create/'
=>
'HeraldNewController'
,
'edit/(?:(?P<id>[1-9]
\d
*)/)?'
=>
'HeraldRuleController'
,
'disable/(?P<id>[1-9]
\d
*)/(?P<action>[^/]+)/'
=>
'HeraldDisableController'
,
'test/'
=>
'HeraldTestConsoleController'
,
'transcript/'
=>
array
(
''
=>
'HeraldTranscriptListController'
,
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'HeraldTranscriptListController'
,
'(?P<id>[1-9]
\d
*)/(?:(?P<view>[^/]+)/)?'
=>
'HeraldTranscriptController'
,
),
'webhook/'
=>
array
(
$this
->
getQueryRoutePattern
()
=>
'HeraldWebhookListController'
,
'view/(?P<id>
\d
+)/(?:request/(?P<requestID>[^/]+)/)?'
=>
'HeraldWebhookViewController'
,
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'HeraldWebhookEditController'
,
'test/(?P<id>
\d
+)/'
=>
'HeraldWebhookTestController'
,
'key/(?P<action>view|cycle)/(?P<id>
\d
+)/'
=>
'HeraldWebhookKeyController'
,
),
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
HeraldManageGlobalRulesCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Global rules can bypass access controls.'
),
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
HeraldCreateWebhooksCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 6:21 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
106757
Default Alt Text
PhabricatorHeraldApplication.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment