Compare commits
No commits in common. "59229d8f3b0c55b9a8a37182807bc4024d150f9c" and "dba037df7f555c17b559e16528642a5d77ca8c4f" have entirely different histories.
59229d8f3b
...
dba037df7f
3 changed files with 12 additions and 19 deletions
|
@ -3,19 +3,12 @@ workspace:
|
||||||
path: package
|
path: package
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
FLOW_VERSION:
|
||||||
- FLOW_VERSION: 6.3
|
- 6.3
|
||||||
PHP_VERSION: 7.4
|
|
||||||
- FLOW_VERSION: 7.3
|
|
||||||
PHP_VERSION: 7.4
|
|
||||||
- FLOW_VERSION: 8.2
|
|
||||||
PHP_VERSION: 7.4
|
|
||||||
- FLOW_VERSION: 8.2
|
|
||||||
PHP_VERSION: 8.2
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
functional-tests:
|
functional-tests:
|
||||||
image: "thecodingmachine/php:${PHP_VERSION}-v4-cli"
|
image: thecodingmachine/php:7.4-v4-cli
|
||||||
environment:
|
environment:
|
||||||
# Enable the PDO_SQLITE extension
|
# Enable the PDO_SQLITE extension
|
||||||
- "PHP_EXTENSION_PDO_SQLITE=1"
|
- "PHP_EXTENSION_PDO_SQLITE=1"
|
||||||
|
@ -27,6 +20,6 @@ pipeline:
|
||||||
- "cd $NEOS_BUILD_DIR"
|
- "cd $NEOS_BUILD_DIR"
|
||||||
- "composer create-project --no-install neos/flow-base-distribution:^$FLOW_VERSION ."
|
- "composer create-project --no-install neos/flow-base-distribution:^$FLOW_VERSION ."
|
||||||
- "composer config repositories.repo-name path /woodpecker/package"
|
- "composer config repositories.repo-name path /woodpecker/package"
|
||||||
- "composer remove --dev --no-update neos/behat || composer remove --no-update neos/behat"
|
- "composer remove --dev neos/behat"
|
||||||
- "composer require digicomp/sequence:@dev"
|
- "composer require digicomp/sequence:@dev"
|
||||||
- "bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.Sequence/Tests/Functional"
|
- "bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.Sequence/Tests/Functional"
|
14
README.md
14
README.md
|
@ -6,13 +6,13 @@ database of your choice.
|
||||||
Usage is quite simple also:
|
Usage is quite simple also:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
/**
|
/**
|
||||||
* @param SequenceGenerator $sequenceGenerator
|
* @param SequenceNumberGenerator $sequenceNumberGenerator
|
||||||
*/
|
*/
|
||||||
public function __construct(SequenceGenerator $sequenceNumberGenerator)
|
public function __construct(SequenceNumberGenerator $sequenceNumberGenerator)
|
||||||
{
|
{
|
||||||
$this->orderId = $sequenceGenerator->getNextNumberFor($this);
|
$this->orderId = $sequenceNumberGenerator->getNextNumberFor($this);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`getNextNumberFor` allows you to give an object (which will be resolved to its FQCN) or a custom sequence name.
|
`getNextNumberFor` allows you to give an object (which will be resolved to its FQCN) or a custom sequence name.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"type": "neos-package",
|
"type": "neos-package",
|
||||||
"require": {
|
"require": {
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"neos/flow": "^6.3.5 | ^7.0 | ^8.0",
|
"neos/flow": "^6.3.5",
|
||||||
"php": ">=7.4"
|
"php": ">=7.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue