Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92694417
PhabricatorHeraldApplication.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, Nov 22, 20:39
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 20:39 (2 d)
Engine
blob
Format
Raw Data
Handle
22489091
Attached To
rPH Phabricator
PhabricatorHeraldApplication.php
View Options
<?php
final
class
PhabricatorHeraldApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/herald/'
;
}
public
function
getIconName
()
{
return
'herald'
;
}
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
getHelpURI
()
{
return
PhabricatorEnv
::
getDoclink
(
'Herald User Guide'
);
}
public
function
getFlavorText
()
{
return
pht
(
'Watch for danger!'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
HeraldRemarkupRule
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/herald/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'HeraldRuleListController'
,
'new/'
=>
'HeraldNewController'
,
'rule/(?P<id>[1-9]
\d
*)/'
=>
'HeraldRuleViewController'
,
'edit/(?:(?P<id>[1-9]
\d
*)/)?'
=>
'HeraldRuleController'
,
'disable/(?P<id>[1-9]
\d
*)/(?P<action>
\w
+)/'
=>
'HeraldDisableController'
,
'history/(?:(?P<id>[1-9]
\d
*)/)?'
=>
'HeraldRuleEditHistoryController'
,
'test/'
=>
'HeraldTestConsoleController'
,
'transcript/'
=>
array
(
''
=>
'HeraldTranscriptListController'
,
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'HeraldTranscriptListController'
,
'(?P<id>[1-9]
\d
*)/(?:(?P<filter>
\w
+)/)?'
=>
'HeraldTranscriptController'
,
)
)
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
HeraldManageGlobalRulesCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Global rules can bypass access controls.'
),
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
);
}
}
Event Timeline
Log In to Comment