belvg/generator-collection

1.2.0 2023-02-24 06:23 UTC

This package is not auto-updated.

Last update: 2024-09-20 13:17:24 UTC


README

使用方法

  protected function initiateGeneratorCollection(
        AbstractCollection $collection,
        int $batch = 1000
    ): GeneratorCollection {
        return $this->generatorCollectionFactory->create([
            'collection' => $collection,
            'batch' => $batch,
        ]);
    }