+ [refac] Add the spout class to delegate method calls of the spout library.

This commit is contained in:
liugang
2025-10-27 09:08:21 +08:00
parent fa32dfc7f9
commit 6457db2806
+12
View File
@@ -0,0 +1,12 @@
<?php
require_once dirname(__FILE__, 2) . '/base/delegate/delegate.class.php';
class spout extends baseDelegate
{
protected static $className = 'Box\Spout\Reader\Common\Creator\ReaderFactory';
public function __construct($readerType = 'xlsx')
{
$this->instance = self::$className::createFromType($readerType);
}
}