
| Current Path : /var/www/html/musik/vendor/drush/drush/src/Preflight/ |
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/musik/vendor/drush/drush/src/Preflight/PreflightLog.php |
<?php
namespace Drush\Preflight;
use Symfony\Component\Console\Output\StreamOutput;
class PreflightLog
{
protected $debug;
protected $output;
public function __construct($output = null)
{
$this->output = $output ?: new StreamOutput(fopen('php://stderr', 'w'));
}
/**
* @return bool
*/
public function getDebug()
{
return $this->debug;
}
/**
* @param bool $debug
*/
public function setDebug($debug)
{
$this->debug = $debug;
return $this;
}
public function log($message)
{
if ($this->getDebug()) {
$this->output->write(' [preflight] ' . $message . "\n");
}
}
}