Current Path : /home/lentoinv/props/vendor/spatie/laravel-ignition/src/Recorders/DumpRecorder/ |
Current File : /home/lentoinv/props/vendor/spatie/laravel-ignition/src/Recorders/DumpRecorder/DumpHandler.php |
<?php namespace Spatie\LaravelIgnition\Recorders\DumpRecorder; use Symfony\Component\VarDumper\Cloner\VarCloner; class DumpHandler { protected DumpRecorder $dumpRecorder; public function __construct(DumpRecorder $dumpRecorder) { $this->dumpRecorder = $dumpRecorder; } public function dump(mixed $value): void { $data = (new VarCloner)->cloneVar($value); $this->dumpRecorder->record($data); } }