forked from neos/neos-development-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove
EventPersister
and much more :)
- Loading branch information
1 parent
7fea53e
commit ec08d64
Showing
37 changed files
with
262 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
Neos.ContentRepository.Core/Classes/EventStore/EventPersister.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
Neos.ContentRepository.Core/Classes/Subscription/Engine/Errors.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\ContentRepository\Core\Subscription\Engine; | ||
|
||
/** | ||
* @implements \IteratorAggregate<Error> | ||
*/ | ||
final readonly class Errors implements \IteratorAggregate, \Countable | ||
{ | ||
/** | ||
* array<Error> | ||
*/ | ||
private array $errors; | ||
|
||
/** | ||
* @param array<Error> $errors | ||
*/ | ||
private function __construct( | ||
Error ...$errors | ||
) { | ||
$this->errors = $errors; | ||
} | ||
|
||
/** | ||
* @param array<Error> $errors | ||
*/ | ||
public static function fromArray(array $errors): self | ||
{ | ||
return new self(...$errors); | ||
} | ||
|
||
public function getIterator(): \Traversable | ||
{ | ||
yield from $this->errors; | ||
} | ||
|
||
public function isEmpty(): bool | ||
{ | ||
return $this->errors === []; | ||
} | ||
|
||
public function count(): int | ||
{ | ||
return count($this->errors); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.