Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2891330
PhabricatorConfigResponse.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorConfigResponse.php
View Options
<?php
final
class
PhabricatorConfigResponse
extends
AphrontHTMLResponse
{
private
$view
;
public
function
setView
(
PhabricatorSetupIssueView
$view
)
{
$this
->
view
=
$view
;
return
$this
;
}
public
function
buildResponseString
(
)
{
$resources
=
$this
->
buildResources
(
)
;
$view
=
$this
->
view
->
render
(
)
;
$template
=
<<<EOTEMPLATE
<!doctype html>
<html>
<head>
<title>Phabricator Setup</title>
{$resources}
</head>
<body class="setup-fatal">
{$view}
</body>
</html>
EOTEMPLATE
;
return
$template
;
}
private
function
buildResources
(
)
{
$css
=
array
(
'application/config/config-template.css'
,
'application/config/setup-issue.css'
,
)
;
$webroot
=
dirname
(
phutil_get_library_root
(
'phabricator'
)
)
.
'/webroot/'
;
$resources
=
array
(
)
;
foreach
(
$css
as
$path
)
{
$resources
[
]
=
'<style type="text/css">'
;
$resources
[
]
=
Filesystem
::
readFile
(
$webroot
.
'/rsrc/css/'
.
$path
)
;
$resources
[
]
=
'</style>'
;
}
return
implode
(
"\n"
,
$resources
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 15:02 (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125766
Default Alt Text
PhabricatorConfigResponse.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment