Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F681806
PhabricatorPhurlApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
PhabricatorPhurlApplication.php
View Options
<?php
final
class
PhabricatorPhurlApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Phurl'
);
}
public
function
getShortDescription
()
{
return
pht
(
'URL Shortener'
);
}
public
function
getFlavorText
()
{
return
pht
(
'Shorten your favorite URL.'
);
}
public
function
getBaseURI
()
{
return
'/phurl/'
;
}
public
function
getIcon
()
{
return
'fa-compress'
;
}
public
function
isPrototype
()
{
return
true
;
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
PhabricatorPhurlRemarkupRule
(),
new
PhabricatorPhurlLinkRemarkupRule
(),
);
}
public
function
getMonograms
()
{
return
array
(
'U'
);
}
public
function
getRoutes
()
{
return
array
(
'/U(?P<id>[1-9]
\d
*)/?'
=>
'PhabricatorPhurlURLViewController'
,
'/u/(?P<id>[1-9]
\d
*)/?'
=>
'PhabricatorPhurlURLAccessController'
,
'/u/(?P<alias>[^/]+)/?'
=>
'PhabricatorPhurlURLAccessController'
,
'/phurl/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorPhurlURLListController'
,
'url/'
=>
array
(
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'PhabricatorPhurlURLEditController'
,
),
),
);
}
public
function
getShortRoutes
()
{
return
array
(
'/status/'
=>
'PhabricatorStatusController'
,
'/favicon.ico'
=>
'PhabricatorFaviconController'
,
'/robots.txt'
=>
'PhabricatorRobotsShortController'
,
'/u/(?P<append>[^/]+)'
=>
'PhabricatorPhurlShortURLController'
,
'.*'
=>
'PhabricatorPhurlShortURLDefaultController'
,
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorPhurlURLCreateCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_USER
,
),
PhabricatorPhurlURLDefaultViewCapability
::
CAPABILITY
=>
array
(
'template'
=>
PhabricatorPhurlURLPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
),
PhabricatorPhurlURLDefaultEditCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_USER
,
'template'
=>
PhabricatorPhurlURLPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_EDIT
,
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 27, 10:14 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
171305
Default Alt Text
PhabricatorPhurlApplication.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment