Skip to content

Commit

Permalink
upgrade to event sourcing 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Jun 26, 2022
1 parent df60199 commit 10bdcc3
Show file tree
Hide file tree
Showing 10 changed files with 310 additions and 58 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
}
],
"require": {
"php": "^7.4|^8.0",
"vimeo/psalm": "^4.21.0"
"php": "^8.1",
"vimeo/psalm": "^4.23.0"
},
"require-dev": {
"patchlevel/coding-standard": "^1.1.1",
"patchlevel/event-sourcing": "^1.0.2",
"patchlevel/event-sourcing": "2.0.x-dev",
"roave/security-advisories": "dev-master",
"symfony/var-dumper": "^5.4.3"
"symfony/var-dumper": "^6.1.0"
},
"config": {
"preferred-install": {
Expand Down
168 changes: 118 additions & 50 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
>
<projectFiles>
<directory name="src"/>
<directory name="tests"/>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>

<plugins>
<pluginClass class="Patchlevel\EventSourcingPsalmPlugin\Plugin"/>
</plugins>
</psalm>
3 changes: 3 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement
{
class_exists(SuppressAggregateRoot::class);
$registration->registerHooksFromClass(SuppressAggregateRoot::class);

class_exists(ProjectionHandleProvider::class);
$registration->registerHooksFromClass(ProjectionHandleProvider::class);
}
}
Loading

0 comments on commit 10bdcc3

Please sign in to comment.