Skip to content

Commit 23ad6c0

Browse files
misc: Cleanup ddd-extensions for 2.0 release
1 parent 4ac75d2 commit 23ad6c0

File tree

7 files changed

+25
-191
lines changed

7 files changed

+25
-191
lines changed

packages/ddd-extensions/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![License](https://img.shields.io/packagist/l/fusonic/ddd-extensions?color=blue)](https://github.com/fusonic/php-ddd-extensions/blob/master/LICENSE)
44
[![Latest Version](https://img.shields.io/github/tag/fusonic/php-ddd-extensions.svg?color=blue)](https://github.com/fusonic/php-ddd-extensions/releases)
55
[![Total Downloads](https://img.shields.io/packagist/dt/fusonic/ddd-extensions.svg?color=blue)](https://packagist.org/packages/fusonic/ddd-extensions)
6-
[![php 8.2+](https://img.shields.io/badge/php-min%208.0-blue.svg)](https://gitlab.com/fusonic/devops/php/extensions/-/blob/12-open-source-preparations/packages/ddd-extensions/composer.json)
6+
[![php 8.2+](https://img.shields.io/badge/php-min%208.2-blue.svg)](https://gitlab.com/fusonic/devops/php/extensions/-/blob/12-open-source-preparations/packages/ddd-extensions/composer.json)
77

88
* [About](#about)
99
* [Install](#install)
@@ -44,7 +44,7 @@ services:
4444
tags:
4545
- { name: nelmio_api_doc.model_describer, priority: 1000 }
4646

47-
# Optionally configure a normalizer to normalizer to automatically serialize/deserialize AbstractIntegerId objects
47+
# Optionally configure a normalizer to automatically serialize/deserialize AbstractIntegerId objects
4848
Fusonic\DDDExtensions\Normalizer\EntityIdNormalizer:
4949
tags:
5050
- { name: serializer.normalizer }

packages/ddd-extensions/UPGRADE.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# UPGRADE
22

3-
## UPGRADE FROM 1.5.0 to 2.0.0
3+
## Upgrade from `1.5.0` to `2.0.0`
44

5+
- Support for Symfony 5.4, 6.1, 6.2 and 6.3 has been discontinued. New required minimum version is now either Symfony
6+
6.4 or 7.0
57
- `ValueObject` and the extending classes `EntityId` and `EntityIntegerId` are now readonly (new PHP 8.2 feature)
8+
- `DomainEventSubscriber` has been removed, use the `DomainEventLifecycleListener` functionality instead
69

7-
## UPGRADE FROM 1.0.1 to 1.1.0
10+
## Upgrade from `1.0.1` to `1.1.0`
811

912
- `DomainEventSubscriber` has been marked as deprecated, `DomainEventLifecycleListener` has been introduced as
1013
replacement
@@ -14,7 +17,7 @@
1417
Lifecycle subscribers are deprecated starting from Symfony 6.3 and will be removed in Symfony 7.0 (see
1518
https://symfony.com/doc/6.3/doctrine/events.html#doctrine-lifecycle-listeners).
1619

17-
## UPGRADE FROM 0.0.7 to 0.0.8
20+
## Upgrade from `0.0.7` to `0.0.8`
1821

1922
- `IdTrait` got renamed to `IntegerIdTrait`
2023
- `AggregateRoot` does not implement the `IdTrait` anymore

packages/ddd-extensions/composer.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,38 @@
2222
},
2323
"require": {
2424
"php": ">=8.2",
25-
"beberlei/assert": "^3.3"
25+
"beberlei/assert": "^3.2"
2626
},
2727
"require-dev": {
28-
"doctrine/orm": "^2.19 || ^3.2",
29-
"friendsofphp/php-cs-fixer": "^3.58",
28+
"doctrine/orm": "^3.2",
29+
"friendsofphp/php-cs-fixer": "^3.64",
3030
"infection/infection": "^0.29",
31-
"nelmio/api-doc-bundle": "^v4.26",
32-
"nikic/php-parser": "^4.17 || ^5.0",
33-
"phpstan/phpstan": "^1.11",
31+
"nelmio/api-doc-bundle": "^v4.29",
32+
"nikic/php-parser": "^5.1",
33+
"phpstan/phpstan": "^1.12",
3434
"phpstan/phpstan-deprecation-rules": "^1.2",
3535
"phpstan/phpstan-phpunit": "^1.4",
3636
"phpstan/phpstan-strict-rules": "^1.6",
3737
"phpstan/phpstan-symfony": "^1.4",
38-
"phpunit/phpunit": "^11.2",
39-
"symfony/cache": "^5.4 || ^6.0 || ^7.0",
40-
"symfony/messenger": "^5.4 || ^6.0 || ^7.0",
41-
"symfony/serializer": "^5.4 || ^6.0 || ^7.0",
38+
"phpunit/phpunit": "^11.3",
39+
"symfony/cache": "^6.4 || ^7.0",
40+
"symfony/messenger": "^6.4 || ^7.0",
41+
"symfony/serializer": "^6.4 || ^7.0",
4242
"tomasvotruba/type-coverage": "^0.3"
4343
},
4444
"suggest": {
45-
"doctrine/orm": "^2.19 || ^3.2",
46-
"symfony/messenger": "^5.4 || ^6.0 || ^7.0",
47-
"symfony/serializer": "^5.4 || ^6.0 || ^7.0",
48-
"nelmio/api-doc-bundle": "^4.26"
45+
"doctrine/orm": "^3.2",
46+
"symfony/messenger": "^^6.4 || ^7.0",
47+
"symfony/serializer": "^6.4 || ^7.0",
48+
"nelmio/api-doc-bundle": "^4.29"
4949
},
5050
"scripts": {
5151
"phpstan": "XDEBUG_MODE=off php -d memory_limit=2048M vendor/bin/phpstan analyse",
5252
"phpcs-check": "XDEBUG_MODE=off vendor/bin/php-cs-fixer check -v --diff",
5353
"phpcs-fix": "XDEBUG_MODE=off vendor/bin/php-cs-fixer fix -v",
5454
"infection": "XDEBUG_MODE=coverage vendor/bin/infection",
5555
"test": "XDEBUG_MODE=off vendor/bin/phpunit --testdox",
56-
"test-coverage" : "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-cobertura=coverage/phpunit/cobertura.xml --coverage-html=coverage/phpunit/html"
56+
"test-coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-cobertura=coverage/phpunit/cobertura.xml --coverage-html=coverage/phpunit/html"
5757
},
5858
"config": {
5959
"sort-packages": true,

packages/ddd-extensions/phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.2/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
cacheDirectory=".phpunit.cache"
66
executionOrder="depends,defects"

packages/ddd-extensions/src/Doctrine/EventSubscriber/DomainEventSubscriber.php

-81
This file was deleted.

packages/ddd-extensions/src/Domain/Validation/Assertion.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected static function createException(
2222
mixed $message,
2323
mixed $code,
2424
mixed $propertyPath = null,
25-
array $constraints = []
25+
array $constraints = [],
2626
): void {
2727
$exception = parent::createException(
2828
$value,

packages/ddd-extensions/tests/DomainEventSubscriberTest.php

-88
This file was deleted.

0 commit comments

Comments
 (0)