Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93920669
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
Mon, Dec 2, 12:52
Size
624 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 12:52 (2 d)
Engine
blob
Format
Raw Data
Handle
22722582
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).
*/
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