TASK: Preparing first public release
This commit is contained in:
parent
fdaec4aaae
commit
cb05f74da3
3 changed files with 52 additions and 1 deletions
19
License.txt
Normal file
19
License.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2016 Ferdinand Kuhl <f.kuhl@digital-competence.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
22
Readme.md
Normal file
22
Readme.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
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.
|
|
@ -1,7 +1,17 @@
|
|||
{
|
||||
"name": "digicomp/sequence",
|
||||
"type": "typo3-flow-package",
|
||||
"description": "",
|
||||
"description": "Sequence is a very simple database agnostic but database based sequence generator",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ferdinand Kuhl",
|
||||
"email": "f.kuhl@digital-competence.de",
|
||||
"homepage": "http://www.digital-competence.de",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/digicomp/DigiComp.Sequence",
|
||||
"require": {
|
||||
"typo3/flow": "~2.0|~3.0"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue