No description
Find a file
2021-06-01 18:46:16 +02:00
Classes Better type handling and exception annotations 2021-06-01 18:46:16 +02:00
Configuration/Testing update project; fit neos/flow 4 2017-03-13 16:59:04 +01:00
Migrations/Mysql empty line between opening php tag and namespace 2020-03-16 15:44:37 +01:00
Tests/Functional PSR-12 for tests 2020-03-10 14:48:58 +01:00
.gitignore Initial commit 2014-04-07 15:25:16 +02:00
composer.json TASK: Adding PHP 7.4 type hints everywhere 2021-04-20 01:45:51 +02:00
License.txt TASK: Preparing first public release 2016-06-24 20:57:06 +02:00
README.md removed trailing spaces 2020-03-11 12:09:37 +01:00

DigiComp.Sequence

This is a very simple and stupid tool, helping in generation of gapless sequences. For this task it relies on key integrity of the database of your choice.

Usage is quite simple also:

/**
 * @param \DigiComp\Sequence\Service\SequenceNumberGenerator $sequenceNumberGenerator
 */
public function __construct(SequenceNumberGenerator $sequenceNumberGenerator)
{
    $this->orderId = $sequenceNumberGenerator->getNextNumberFor($this);
}

getNextNumberFor allows you to give an object which will be resolved to its FQCN or a custom sequence name.

The CommandController helps you to advance the current sequence number, in case of migrations or similar.

See ./flow help sequence:advance if interested.