Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F68765519
PhabricatorConfigFileSource.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, Jun 28, 20:24
Size
636 B
Mime Type
text/x-php
Expires
Sun, Jun 30, 20:24 (2 d)
Engine
blob
Format
Raw Data
Handle
18630383
Attached To
rPH Phabricator
PhabricatorConfigFileSource.php
View Options
<?php
/**
* Configuration source which reads from a configuration file on disk (a
* PHP file in the conf/ directory). This source
*/
final
class
PhabricatorConfigFileSource
extends
PhabricatorConfigProxySource
{
/**
* @phutil-external-symbol function phabricator_read_config_file
*/
public
function
__construct
(
$config
)
{
$root
=
dirname
(
phutil_get_library_root
(
'phabricator'
));
require_once
$root
.
'/conf/__init_conf__.php'
;
$dictionary
=
phabricator_read_config_file
(
$config
);
$dictionary
[
'phabricator.env'
]
=
$config
;
$this
->
setSource
(
new
PhabricatorConfigDictionarySource
(
$dictionary
));
}
}
Event Timeline
Log In to Comment