Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92694393
PhabricatorApplicationHarbormaster.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:38
Size
2 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 20:38 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22488857
Attached To
rPH Phabricator
PhabricatorApplicationHarbormaster.php
View Options
<?php
final
class
PhabricatorApplicationHarbormaster
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/harbormaster/'
;
}
public
function
getShortDescription
()
{
return
pht
(
'Builds and Continuous Integration'
);
}
public
function
getIconName
()
{
return
'harbormaster'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
99
\x
BB"
;
}
public
function
getFlavorText
()
{
return
pht
(
'Ship Some Freight'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
getEventListeners
()
{
return
array
(
new
HarbormasterUIEventListener
(),
);
}
public
function
isBeta
()
{
return
true
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
HarbormasterRemarkupRule
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/B(?P<id>[1-9]
\d
*)'
=>
'HarbormasterBuildableViewController'
,
'/harbormaster/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'HarbormasterBuildableListController'
,
'step/'
=>
array
(
'add/(?:(?P<id>
\d
+)/)?'
=>
'HarbormasterStepAddController'
,
'new/(?P<plan>
\d
+)/(?P<class>[^/]+)/'
=>
'HarbormasterStepEditController'
,
'edit/(?:(?P<id>
\d
+)/)?'
=>
'HarbormasterStepEditController'
,
'delete/(?:(?P<id>
\d
+)/)?'
=>
'HarbormasterStepDeleteController'
,
),
'buildable/'
=>
array
(
'(?P<id>
\d
+)/(?P<action>stop|resume|restart)/'
=>
'HarbormasterBuildableActionController'
,
),
'build/'
=>
array
(
'(?P<id>
\d
+)/'
=>
'HarbormasterBuildViewController'
,
'(?P<action>stop|resume|restart)/(?P<id>
\d
+)/(?:(?P<via>[^/]+)/)?'
=>
'HarbormasterBuildActionController'
,
),
'plan/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'HarbormasterPlanListController'
,
'edit/(?:(?P<id>
\d
+)/)?'
=>
'HarbormasterPlanEditController'
,
'order/(?:(?P<id>
\d
+)/)?'
=>
'HarbormasterPlanOrderController'
,
'disable/(?P<id>
\d
+)/'
=>
'HarbormasterPlanDisableController'
,
'run/(?P<id>
\d
+)/'
=>
'HarbormasterPlanRunController'
,
'(?P<id>
\d
+)/'
=>
'HarbormasterPlanViewController'
,
),
),
);
}
public
function
getCustomCapabilities
()
{
return
array
(
HarbormasterCapabilityManagePlans
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Can create and manage build plans.'
),
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
);
}
}
Event Timeline
Log In to Comment