No description
Find a file
Robin Krahnen d501426770 TASK: Apply migration Neos.Flow-20180415105700
Add scalar type hint to CacheAwareInterface implementations.

Note: This migration did not produce any changes, so the commit simply
marks the migration as applied. This makes sure it will not be applied
again.
2019-08-27 11:30:13 +02:00
Classes remove unnecessary @Flow\Scope("prototype") 2019-07-30 11:02:25 +02:00
Configuration/Testing update project; fit neos/flow 4 2017-03-13 16:59:04 +01:00
Migrations/Mysql update project; fit neos/flow 4 2017-03-13 16:59:04 +01:00
Tests/Functional update project; fit neos/flow 4 2017-03-13 16:59:04 +01:00
.gitignore Initial commit 2014-04-07 15:25:16 +02:00
composer.json TASK: Apply migration Neos.Flow-20180415105700 2019-08-27 11:30:13 +02:00
License.txt TASK: Preparing first public release 2016-06-24 20:57:06 +02:00
README.md optimized spaces in readme 2019-06-07 09:02:40 +02: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.