Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99601944
PhabricatorPlatformSite.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, Jan 25, 17:13
Size
776 B
Mime Type
text/x-php
Expires
Mon, Jan 27, 17:13 (2 d)
Engine
blob
Format
Raw Data
Handle
23830982
Attached To
rPH Phabricator
PhabricatorPlatformSite.php
View Options
<?php
final
class
PhabricatorPlatformSite
extends
PhabricatorSite
{
public
function
getDescription
()
{
return
pht
(
'Serves the core platform and applications.'
);
}
public
function
getPriority
()
{
return
1000
;
}
public
function
newSiteForRequest
(
AphrontRequest
$request
)
{
$uris
=
array
();
$uris
[]
=
PhabricatorEnv
::
getEnvConfig
(
'phabricator.base-uri'
);
$uris
[]
=
PhabricatorEnv
::
getEnvConfig
(
'phabricator.production-uri'
);
$allowed
=
PhabricatorEnv
::
getEnvConfig
(
'phabricator.allowed-uris'
);
if
(
$allowed
)
{
foreach
(
$allowed
as
$uri
)
{
$uris
[]
=
$uri
;
}
}
$host
=
$request
->
getHost
();
if
(
$this
->
isHostMatch
(
$host
,
$uris
))
{
return
new
PhabricatorPlatformSite
();
}
return
null
;
}
}
Event Timeline
Log In to Comment