Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98213060
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
Sat, Jan 11, 02:57
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jan 13, 02:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23532369
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'
,
'comment/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorPhurlURLCommentController'
,
),
),
);
}
public
function
getShortRoutes
()
{
return
array
(
'/u/(?P<append>[^/]+)'
=>
'PhabricatorPhurlShortURLController'
,
'.*'
=>
'PhabricatorPhurlShortURLDefaultController'
,
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorPhurlURLCreateCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_USER
,
),
);
}
}
Event Timeline
Log In to Comment