Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110037141
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
Thu, Apr 24, 10:56
Size
636 B
Mime Type
text/x-php
Expires
Sat, Apr 26, 10:56 (2 d)
Engine
blob
Format
Raw Data
Handle
25779693
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