Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96141856
PhabricatorHarbormasterApplication.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
Mon, Dec 23, 02:02
Size
2 KB
Mime Type
text/x-php
Expires
Wed, Dec 25, 02:02 (2 d)
Engine
blob
Format
Raw Data
Handle
23130618
Attached To
rPH Phabricator
PhabricatorHarbormasterApplication.php
View Options
<?php
final
class
PhabricatorHarbormasterApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/harbormaster/'
;
}
public
function
getName
()
{
return
pht
(
'Harbormaster'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Build/CI'
);
}
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