
| Current Path : /var/www/html/holz-machines/vendor/drush/drush/src/Config/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/holz-machines/vendor/drush/drush/src/Config/DrushConfig.php |
<?php
namespace Drush\Config;
use Robo\Config\Config;
use Consolidation\Config\Util\ConfigOverlay;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem;
// TODO: Not sure if we should have a reference to PreflightArgs here.
// Maybe these constants should be in config, and PreflightArgs can
// reference them from there as well.
use Drush\Preflight\PreflightArgs;
/**
* Accessors for common Drush config keys.
*/
class DrushConfig extends ConfigOverlay
{
public function cwd()
{
return $this->get('env.cwd');
}
public function home()
{
return $this->get('env.home');
}
public function user()
{
return $this->get('env.user');
}
public function isWindows()
{
return $this->get('env.is-windows');
}
public function tmp()
{
return $this->get('env.tmp');
}
/**
* Return the path to this Drush
*/
public function drushScript()
{
return $this->get('runtime.drush-script', 'drush');
}
/**
* Return 'true' if we are in simulated mode.
*/
public function simulate()
{
return $this->get(Config::SIMULATE);
}
/**
* Return the list of paths to active Drush configuration files.
* @return array
*/
public function configPaths()
{
return $this->get('runtime.config.paths', []);
}
}