Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93552581
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
Fri, Nov 29, 16:33
Size
548 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 16:33 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22653120
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