ExportSpool
Corex\Config\Export\ExportSpool · class · Config layer
The working file of an export in progress (spec 103). An export is gathered a batch at a time, over several requests, and its file is written once, at the end. Between the two, the batches are kept here, a record to a line. Nothing but the batch in hand is in memory.
Public API
Section titled “Public API”__construct(string $path)
Section titled “__construct(string $path)”append(array $records): void
Section titled “append(array $records): void”records(): iterable
Section titled “records(): iterable”Every record gathered so far. Can be read more than once; each read goes back to the disk.