![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/vendor/maatwebsite/excel/src/Jobs/ |
<?php namespace Maatwebsite\Excel\Jobs; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Maatwebsite\Excel\Files\Filesystem; use Maatwebsite\Excel\Files\TemporaryFile; class StoreQueuedExport implements ShouldQueue { use Queueable; /** * @var string */ private $filePath; /** * @var string|null */ private $disk; /** * @var TemporaryFile */ private $temporaryFile; /** * @var array|string */ private $diskOptions; /** * @param TemporaryFile $temporaryFile * @param string $filePath * @param string|null $disk * @param array|string $diskOptions */ public function __construct(TemporaryFile $temporaryFile, string $filePath, string $disk = null, $diskOptions = []) { $this->disk = $disk; $this->filePath = $filePath; $this->temporaryFile = $temporaryFile; $this->diskOptions = $diskOptions; } /** * @param Filesystem $filesystem */ public function handle(Filesystem $filesystem) { $filesystem->disk($this->disk, $this->diskOptions)->copy( $this->temporaryFile, $this->filePath ); $this->temporaryFile->delete(); } }