Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101669086
PhabricatorPhurlApplication.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
Wed, Feb 12, 15:16
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Feb 14, 15:16 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24208709
Attached To
rPH Phabricator
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
getFontIcon
()
{
return
'fa-compress'
;
}
public
function
isPrototype
()
{
return
true
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
PhabricatorPhurlRemarkupRule
(),
new
PhabricatorPhurlLinkRemarkupRule
(),
);
}
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
(
'create/'
=>
'PhabricatorPhurlURLEditController'
,
'edit/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorPhurlURLEditController'
,
),
),
);
}
}
Event Timeline
Log In to Comment