Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281196
PhabricatorCelerityApplication.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
1 KB
Referenced Files
None
Subscribers
None
PhabricatorCelerityApplication.php
View Options
<?php
final
class
PhabricatorCelerityApplication
extends
PhabricatorApplication
{
public
function
getName
(
)
{
return
pht
(
'Celerity'
)
;
}
public
function
canUninstall
(
)
{
return
false
;
}
public
function
isUnlisted
(
)
{
return
true
;
}
public
function
getRoutes
(
)
{
// We serve resources from both the platform site and the resource site.
// This is safe because the user doesn't have any direct control over
// resources.
// The advantage of serving resources from the resource site (if possible)
// is that we can use a CDN there if one is configured, but there is no
// particular security concern.
return
$this
->
getResourceRoutes
(
)
;
}
public
function
getResourceRoutes
(
)
{
$extensions
=
CelerityResourceController
::
getSupportedResourceTypes
(
)
;
$extensions
=
array_keys
(
$extensions
)
;
$extensions
=
implode
(
'|'
,
$extensions
)
;
return
array
(
'/res/'
=>
array
(
'(?:(?P<mtime>[0-9]+)T/)?'
.
'(?:(?P<postprocessor>[^/]+)X/)?'
.
'(?P<library>[^/]+)/'
.
'(?P<hash>[a-f0-9]{8})/'
.
'(?P<path>.+\.(?:'
.
$extensions
.
'))'
=>
'CelerityPhabricatorResourceController'
,
)
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Mar 23, 19:57 (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1143398
Default Alt Text
PhabricatorCelerityApplication.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment