Ensure Config::load() in scripts

This commit is contained in:
Hypolite Petovan 2018-03-07 12:35:16 -05:00
commit 7e765199e8
3 changed files with 8 additions and 5 deletions

View file

@ -18,11 +18,9 @@ include 'boot.php';
$a = new App(dirname(__DIR__));
BaseObject::setApp($a);
if (x($a->config, 'php_path')) {
$phpath = $a->config['php_path'];
} else {
$phpath = 'php';
}
@include '.htconfig.php';
$phpath = $a->getConfigValue('config', 'php_path', 'php');
echo 'Directory: src' . PHP_EOL;
$Iterator = new RecursiveDirectoryIterator('src');