📋 Commit iniziale con: - ✅ Documentazione unificata in docs/ - ✅ Codice Laravel in netgescon-laravel/ - ✅ Script automazione in scripts/ - ✅ Configurazione sync rsync - ✅ Struttura organizzata e pulita 🔄 Versione: 2025.07.19-1644 🎯 Sistema pronto per Git distribuito
43 lines
762 B
PHP
43 lines
762 B
PHP
<?php
|
|
|
|
namespace Illuminate\Console;
|
|
|
|
use Symfony\Component\Console\Output\ConsoleOutput;
|
|
|
|
class BufferedConsoleOutput extends ConsoleOutput
|
|
{
|
|
/**
|
|
* The current buffer.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $buffer = '';
|
|
|
|
/**
|
|
* Empties the buffer and returns its content.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function fetch()
|
|
{
|
|
return tap($this->buffer, function () {
|
|
$this->buffer = '';
|
|
});
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
#[\Override]
|
|
protected function doWrite(string $message, bool $newline): void
|
|
{
|
|
$this->buffer .= $message;
|
|
|
|
if ($newline) {
|
|
$this->buffer .= \PHP_EOL;
|
|
}
|
|
|
|
parent::doWrite($message, $newline);
|
|
}
|
|
}
|