
| Current Path : /var/www/html/holz-machines/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/holz-machines/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'));
}
public function getDebug(): ?bool
{
return $this->debug;
}
public function setDebug(bool $debug): self
{
$this->debug = $debug;
return $this;
}
public function log($message): void
{
if ($this->getDebug()) {
$this->output->write(' [preflight] ' . $message . "\n");
}
}
}