first commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Maatwebsite\Excel;
|
||||
|
||||
use Maatwebsite\Excel\Cache\CacheManager;
|
||||
use PhpOffice\PhpSpreadsheet\Settings;
|
||||
|
||||
class SettingsProvider
|
||||
{
|
||||
/**
|
||||
* @var CacheManager
|
||||
*/
|
||||
private $cache;
|
||||
|
||||
public function __construct(CacheManager $cache)
|
||||
{
|
||||
$this->cache = $cache;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide PhpSpreadsheet settings.
|
||||
*/
|
||||
public function provide()
|
||||
{
|
||||
$this->configureCellCaching();
|
||||
}
|
||||
|
||||
protected function configureCellCaching()
|
||||
{
|
||||
Settings::setCache(
|
||||
$this->cache->driver()
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user