Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98149790
PhabricatorSystemFaviconController.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
Fri, Jan 10, 07:59
Size
549 B
Mime Type
text/x-php
Expires
Sun, Jan 12, 07:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23500807
Attached To
rPH Phabricator
PhabricatorSystemFaviconController.php
View Options
<?php
final
class
PhabricatorSystemFaviconController
extends
PhabricatorController
{
public
function
shouldRequireLogin
()
{
return
false
;
}
public
function
processRequest
()
{
$webroot
=
dirname
(
phutil_get_library_root
(
'phabricator'
)).
'/webroot/'
;
$content
=
Filesystem
::
readFile
(
$webroot
.
'/rsrc/favicons/favicon.ico'
);
return
id
(
new
AphrontFileResponse
())
->
setContent
(
$content
)
->
setMimeType
(
'image/x-icon'
)
->
setCacheDurationInSeconds
(
phutil_units
(
'24 hours in seconds'
))
->
setCanCDN
(
true
);
}
}
Event Timeline
Log In to Comment