Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96362246
PhabricatorCelerityApplication.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, Dec 25, 22:26
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Dec 27, 22:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23172091
Attached To
rPH Phabricator
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'
,
),
);
}
}
Event Timeline
Log In to Comment