打印机装载器
框架目前已经内置快递鸟打印、易联云打印。
PrinterLoader负责管理打印功能,支持对接不同的打印机服务提供商。
文件目录 niucloud\core\printer\PrinterLoader.php
php
class PrinterLoader extends Loader
{
// 命名空间
protected $namespace = '\\core\\printer\\';
// 配置名称
protected $config_name = 'printer';
// 获取默认驱动(硬编码为'kdbird')
protected function getDefault()
{
return 'kdbird';
}
}