Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890156
PhabricatorPackagesApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
2 KB
Referenced Files
None
Subscribers
None
PhabricatorPackagesApplication.php
View Options
<?php
final
class
PhabricatorPackagesApplication
extends
PhabricatorApplication
{
public
function
getName
(
)
{
return
pht
(
'Packages'
)
;
}
public
function
getShortDescription
(
)
{
return
pht
(
'Publish Software'
)
;
}
public
function
getFlavorText
(
)
{
return
pht
(
'Applications and Extensions'
)
;
}
public
function
getBaseURI
(
)
{
return
'/packages/package/'
;
}
public
function
getIcon
(
)
{
return
'fa-gift'
;
}
public
function
getApplicationGroup
(
)
{
return
self
::
GROUP_UTILITIES
;
}
public
function
isPrototype
(
)
{
return
true
;
}
protected
function
getCustomCapabilities
(
)
{
return
array
(
PhabricatorPackagesCreatePublisherCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
)
,
PhabricatorPackagesPublisherDefaultEditCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default edit policy for newly created publishers.'
)
,
'template'
=>
PhabricatorPackagesPublisherPHIDType
::
TYPECONST
,
'default'
=>
PhabricatorPolicies
::
POLICY_NOONE
,
)
,
PhabricatorPackagesPackageDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default edit policy for newly created packages.'
)
,
'template'
=>
PhabricatorPackagesPackagePHIDType
::
TYPECONST
,
)
,
PhabricatorPackagesPackageDefaultEditCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created packages.'
)
,
'template'
=>
PhabricatorPackagesPackagePHIDType
::
TYPECONST
,
'default'
=>
PhabricatorPolicies
::
POLICY_NOONE
,
)
,
)
;
}
public
function
getRoutes
(
)
{
return
array
(
'/package/'
=>
array
(
'(?P<publisherKey>[^/]+)/'
=>
array
(
''
=>
'PhabricatorPackagesPublisherViewController'
,
'(?P<packageKey>[^/]+)/'
=>
array
(
''
=>
'PhabricatorPackagesPackageViewController'
,
'(?P<versionKey>[^/]+)/'
=>
'PhabricatorPackagesVersionViewController'
,
)
,
)
,
)
,
'/packages/'
=>
array
(
'publisher/'
=>
array
(
$this
->
getQueryRoutePattern
(
)
=>
'PhabricatorPackagesPublisherListController'
,
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'PhabricatorPackagesPublisherEditController'
,
)
,
'package/'
=>
array
(
$this
->
getQueryRoutePattern
(
)
=>
'PhabricatorPackagesPackageListController'
,
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'PhabricatorPackagesPackageEditController'
,
)
,
'version/'
=>
array
(
$this
->
getQueryRoutePattern
(
)
=>
'PhabricatorPackagesVersionListController'
,
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'PhabricatorPackagesVersionEditController'
,
)
,
)
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 13:08 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124918
Default Alt Text
PhabricatorPackagesApplication.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment