Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96620085
PhabricatorRequestExceptionHandler.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
Sun, Dec 29, 01:24
Size
548 B
Mime Type
text/x-php
Expires
Tue, Dec 31, 01:24 (1 d, 6 h)
Engine
blob
Format
Raw Data
Handle
23216591
Attached To
rPH Phabricator
PhabricatorRequestExceptionHandler.php
View Options
<?php
abstract
class
PhabricatorRequestExceptionHandler
extends
AphrontRequestExceptionHandler
{
protected
function
isPhabricatorSite
(
AphrontRequest
$request
)
{
$site
=
$request
->
getSite
();
if
(!
$site
)
{
return
false
;
}
return
(
$site
instanceof
PhabricatorSite
);
}
protected
function
getViewer
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getUser
();
if
(
$viewer
)
{
return
$viewer
;
}
// If we hit an exception very early, we won't have a user yet.
return
new
PhabricatorUser
();
}
}
Event Timeline
Log In to Comment