Task: #53687 Support instance-specific cfg write targets and add coverage V2 #4
1 changed files with 0 additions and 10 deletions
fix: remove commented code
commit
f87ada6c15
10
bin/cfg
10
bin/cfg
|
|
@ -320,16 +320,6 @@ $appPath = $argv->find('appPath');
|
||||||
if (!$appPath) $appPath = getcwd().'/';
|
if (!$appPath) $appPath = getcwd().'/';
|
||||||
$appPath = rtrim($appPath, '/').'/';
|
$appPath = rtrim($appPath, '/').'/';
|
||||||
|
|
||||||
/* $it = new RecursiveDirectoryIterator($appPath);
|
|
||||||
|
|
||||||
foreach(new RecursiveIteratorIterator($it) as $file)
|
|
||||||
{
|
|
||||||
$configDir = $file->getPath();
|
|
||||||
if ($file->isDir() && $file->getFilename() == '.' && basename($configDir) == 'config') {
|
|
||||||
echo "found config dir: $configDir\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
$mode = ($argv->find('mode') == '') ? null : $argv->find('mode');
|
$mode = ($argv->find('mode') == '') ? null : $argv->find('mode');
|
||||||
$cfg = (new Settings([], $mode))->appPath($appPath)->prefix($prefix);
|
$cfg = (new Settings([], $mode))->appPath($appPath)->prefix($prefix);
|
||||||
// pkgPath points to package defaults (e.g. <prefix>.default.conf.php)
|
// pkgPath points to package defaults (e.g. <prefix>.default.conf.php)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue