Files
apimacro/vendor/spatie/laravel-backup/src/Commands/BaseCommand.php
2024-05-07 12:17:25 +02:00

19 lines
457 B
PHP

<?php
namespace Spatie\Backup\Commands;
use Illuminate\Console\Command;
use Spatie\Backup\Helpers\ConsoleOutput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
abstract class BaseCommand extends Command
{
public function run(InputInterface $input, OutputInterface $output): int
{
app(ConsoleOutput::class)->setOutput($this);
return parent::run($input, $output);
}
}