Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117102020
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
Wed, Jun 11, 13:01
Size
624 B
Mime Type
text/x-php
Expires
Fri, Jun 13, 13:01 (2 d)
Engine
blob
Format
Raw Data
Handle
26661357
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