Laravel-excel: [BUG] ImportHandler 的文档错误?

创建于 2017-01-19  ·  3评论  ·  资料来源: Maatwebsite/Laravel-Excel

Laravel- Excel:2.1.7 / Laravel: 5.3.24

在 Import Handlers 下的文档中,它指出handle()函数接受/注入 Importer 类的实例,但是如果您尝试以这种方式定义它,则这是不正确的,因为参数不能键入提示:

Declaration of App\ExcelImporters\ContactsImporterHandler::handle() must be compatible with Maatwebsite\Excel\Files\ImportHandler::handle($file)
use Maatwebsite\Excel\Files\ImportHandler;
use App\ExcelImporters\ContactsImporter;

class ContactsImporterHandler implements ImportHandler
{
    public function handle(ContactsImporter $import)
    {
      ...
    }

这是文档中的错误还是我做错了什么?

最有用的评论

@stevepop虽然它是一个很棒的软件包,但目前报告了很多问题,所以我猜作者很忙或 MIA。

所有3条评论

我现在也刚看到这个,不知道为什么作者自一月份创建以来一直没有回应这个问题? 我猜他正忙于处理其他更“重要的问题”

@stevepop虽然它是一个很棒的软件包,但目前报告了很多问题,所以我猜作者很忙或 MIA。

九个月过去了,作者没有回答。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

vandolphreyes picture vandolphreyes  ·  3评论

daraghoshea picture daraghoshea  ·  3评论

gamevnlc picture gamevnlc  ·  3评论

lucatamtam picture lucatamtam  ·  3评论

amine8ghandi8amine picture amine8ghandi8amine  ·  3评论