Skip to content

Commit 6c9b55a

Browse files
committed
Use OpenSpout v3 instead of Spout
1 parent d1e6748 commit 6c9b55a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"yajra/laravel-datatables-buttons": "4.*|9.*",
2222
"yajra/laravel-datatables-html": "^4.40|9.*",
2323
"livewire/livewire": "2.*|3.*",
24-
"box/spout": "^3.3"
24+
"openspout/openspout": "^3"
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^9.5.9"

src/Jobs/DataTableExportJob.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Yajra\DataTables\Jobs;
44

5-
use Box\Spout\Common\Helper\CellTypeHelper;
6-
use Box\Spout\Common\Type;
7-
use Box\Spout\Writer\Common\Creator\Style\StyleBuilder;
8-
use Box\Spout\Writer\Common\Creator\WriterEntityFactory;
5+
use OpenSpout\Common\Helper\CellTypeHelper;
6+
use OpenSpout\Common\Type;
7+
use OpenSpout\Writer\Common\Creator\Style\StyleBuilder;
8+
use OpenSpout\Writer\Common\Creator\WriterEntityFactory;
99
use Carbon\Carbon;
1010
use Illuminate\Bus\Batchable;
1111
use Illuminate\Bus\Queueable;
@@ -56,9 +56,9 @@ public function __construct(array $dataTable, array $request, $user = null)
5656
* Execute the job.
5757
*
5858
* @return void
59-
* @throws \Box\Spout\Common\Exception\IOException
60-
* @throws \Box\Spout\Common\Exception\UnsupportedTypeException
61-
* @throws \Box\Spout\Writer\Exception\WriterNotOpenedException
59+
* @throws \OpenSpout\Common\Exception\IOException
60+
* @throws \OpenSpout\Common\Exception\UnsupportedTypeException
61+
* @throws \OpenSpout\Writer\Exception\WriterNotOpenedException
6262
*/
6363
public function handle()
6464
{

0 commit comments

Comments
 (0)