Merge branch 'release/4.0.1'
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests Pipeline was successful

This commit is contained in:
Ferdinand Kuhl 2023-02-18 21:30:33 +01:00
commit 019bdcc9c7
5 changed files with 21 additions and 21 deletions

View file

@ -3,5 +3,6 @@ pipeline:
image: composer
commands:
- composer global config repositories.repo-name vcs https://git.digital-competence.de/Packages/php-codesniffer
- composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
- composer global require digicomp/php-codesniffer:@dev
- composer global exec -- phpcs --runtime-set ignore_warnings_on_exit 1 --standard=DigiComp Classes/ Migrations/ Tests/
- composer global exec -- phpcs --runtime-set ignore_warnings_on_exit 1 --standard=DigiComp Classes/ Tests/

View file

@ -3,12 +3,19 @@ workspace:
path: package
matrix:
FLOW_VERSION:
- 6.3
include:
- FLOW_VERSION: 6.3
PHP_VERSION: 7.4
- FLOW_VERSION: 7.3
PHP_VERSION: 7.4
- FLOW_VERSION: 7.3
PHP_VERSION: 8.2
- FLOW_VERSION: 8.2
PHP_VERSION: 8.2
pipeline:
functional-tests:
image: thecodingmachine/php:7.4-v4-cli
image: "thecodingmachine/php:${PHP_VERSION}-v4-cli"
environment:
# Enable the PDO_SQLITE extension
- "PHP_EXTENSION_PDO_SQLITE=1"
@ -20,6 +27,6 @@ pipeline:
- "cd $NEOS_BUILD_DIR"
- "composer create-project --no-install neos/flow-base-distribution:^$FLOW_VERSION ."
- "composer config repositories.repo-name path /woodpecker/package"
- "composer remove --dev neos/behat"
- "composer remove --dev --no-update neos/behat || composer remove --no-update neos/behat"
- "composer require digicomp/sequence:@dev"
- "bin/phpunit --configuration Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/DigiComp.Sequence/Tests/Functional"

View file

@ -1,8 +0,0 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
Start of the changelog.

View file

@ -6,13 +6,13 @@ database of your choice.
Usage is quite simple also:
```php
/**
* @param SequenceNumberGenerator $sequenceNumberGenerator
*/
public function __construct(SequenceNumberGenerator $sequenceNumberGenerator)
{
$this->orderId = $sequenceNumberGenerator->getNextNumberFor($this);
}
/**
* @param SequenceGenerator $sequenceGenerator
*/
public function __construct(SequenceGenerator $sequenceNumberGenerator)
{
$this->orderId = $sequenceGenerator->getNextNumberFor($this);
}
```
`getNextNumberFor` allows you to give an object (which will be resolved to its FQCN) or a custom sequence name.

View file

@ -4,7 +4,7 @@
"type": "neos-package",
"require": {
"ext-pdo": "*",
"neos/flow": "^6.3.5",
"neos/flow": "^6.3.5 | ^7.0 | ^8.0",
"php": ">=7.4"
},
"require-dev": {