Description
The Yokai\Batch\Factory\JobExecutionIdGeneratorInterface interface allows to generate ids the way you want.
For the moment, there is a single (prod) implementation of this interface: Yokai\Batch\Factory\UniqidJobExecutionIdGenerator that is using the PHP uniqid function.
We should add some alternatives.
Example
Add string $prefix & bool $moreEntropy constructor args to UniqidJobExecutionIdGenerator.
Have at least a bridge with one of these libraries:
ramsey/uuid
symfony/uid
hashids/hashids
Description
The
Yokai\Batch\Factory\JobExecutionIdGeneratorInterfaceinterface allows to generate ids the way you want.For the moment, there is a single (prod) implementation of this interface:
Yokai\Batch\Factory\UniqidJobExecutionIdGeneratorthat is using the PHPuniqidfunction.We should add some alternatives.
Example
Add
string $prefix&bool $moreEntropyconstructor args toUniqidJobExecutionIdGenerator.Have at least a bridge with one of these libraries:
ramsey/uuidsymfony/uidhashids/hashids