Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93628438
PhameBlogResourceSite.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, Nov 30, 06:44
Size
551 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 06:44 (2 d)
Engine
blob
Format
Raw Data
Handle
22675903
Attached To
rPH Phabricator
PhameBlogResourceSite.php
View Options
<?php
final
class
PhameBlogResourceSite
extends
PhameSite
{
public
function
getDescription
()
{
return
pht
(
'Serves static resources for blogs.'
);
}
public
function
getPriority
()
{
return
3000
;
}
public
function
newSiteForRequest
(
AphrontRequest
$request
)
{
if
(!
$this
->
isPhameActive
())
{
return
null
;
}
$whitelist
=
array
(
'/phame/r/'
,
);
$path
=
$request
->
getPath
();
if
(!
$this
->
isPathPrefixMatch
(
$path
,
$whitelist
))
{
return
null
;
}
return
new
PhameBlogResourceSite
();
}
}
Event Timeline
Log In to Comment