Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106648833
PhabricatorReleephApplication.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
Sat, Mar 29, 09:06
Size
2 KB
Mime Type
text/x-php
Expires
Mon, Mar 31, 10:06 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25244504
Attached To
rPH Phabricator
PhabricatorReleephApplication.php
View Options
<?php
final
class
PhabricatorReleephApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Releeph'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Pull Requests'
);
}
public
function
getBaseURI
()
{
return
'/releeph/'
;
}
public
function
getIcon
()
{
return
'fa-flag-checkered'
;
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
isPrototype
()
{
return
true
;
}
public
function
getRoutes
()
{
return
array
(
'/Y(?P<requestID>[1-9]
\d
*)'
=>
'ReleephRequestViewController'
,
// TODO: Remove these older routes eventually.
'/RQ(?P<requestID>[1-9]
\d
*)'
=>
'ReleephRequestViewController'
,
'/releeph/request/(?P<requestID>[1-9]
\d
*)/'
=>
'ReleephRequestViewController'
,
'/releeph/'
=>
array
(
''
=>
'ReleephProductListController'
,
'(?:product|project)/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'ReleephProductListController'
,
'create/'
=>
'ReleephProductCreateController'
,
'(?P<projectID>[1-9]
\d
*)/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'ReleephProductViewController'
,
'edit/'
=>
'ReleephProductEditController'
,
'cutbranch/'
=>
'ReleephBranchCreateController'
,
'action/(?P<action>.+)/'
=>
'ReleephProductActionController'
,
'history/'
=>
'ReleephProductHistoryController'
,
),
),
'branch/'
=>
array
(
'edit/(?P<branchID>[1-9]
\d
*)/'
=>
'ReleephBranchEditController'
,
'(?P<action>close|re-open)/(?P<branchID>[1-9]
\d
*)/'
=>
'ReleephBranchAccessController'
,
'preview/'
=>
'ReleephBranchNamePreviewController'
,
'(?P<branchID>[1-9]
\d
*)/'
=>
array
(
'history/'
=>
'ReleephBranchHistoryController'
,
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'ReleephBranchViewController'
,
),
'pull/(?P<branchID>[1-9]
\d
*)/'
=>
'ReleephRequestEditController'
,
),
'request/'
=>
array
(
'create/'
=>
'ReleephRequestEditController'
,
'differentialcreate/'
=>
array
(
'D(?P<diffRevID>[1-9]
\d
*)'
=>
'ReleephRequestDifferentialCreateController'
,
),
'edit/(?P<requestID>[1-9]
\d
*)/'
=>
'ReleephRequestEditController'
,
'action/(?P<action>.+)/(?P<requestID>[1-9]
\d
*)/'
=>
'ReleephRequestActionController'
,
'typeahead/'
=>
'ReleephRequestTypeaheadController'
,
'comment/(?P<requestID>[1-9]
\d
*)/'
=>
'ReleephRequestCommentController'
,
),
),
);
}
public
function
getMailCommandObjects
()
{
// TODO: Pull requests don't implement any interfaces which give them
// meaningful commands, so don't expose ReleephRequest here for now.
// Once we add relevant commands, return it here.
return
array
();
}
}
Event Timeline
Log In to Comment