-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* supported versions - drop support for unmaintained versions - add support for php8.2/8.3 and symfony 7.0 * update copyrights * run static analysis on latest stable version
- Loading branch information
1 parent
393b76d
commit 0e75bdc
Showing
70 changed files
with
159 additions
and
161 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int | |
|
||
/** @var string|null $filter */ | ||
$filter = $input->getArgument(self::ARGUMENT_FILTER); | ||
$regex = $input->getOption(static::OPTION_REGEX); | ||
$regex = $input->getOption(self::OPTION_REGEX); | ||
|
||
$output->write(\sprintf('<action>Projection names')); | ||
if ($filter) { | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -27,12 +27,12 @@ protected function configure(): void | |
$this | ||
->setName('event-store:projection:run') | ||
->setDescription('Runs a projection') | ||
->addOption(static::OPTION_RUN_ONCE, 'o', InputOption::VALUE_NONE, 'Loop the projection only once, then exit'); | ||
->addOption(self::OPTION_RUN_ONCE, 'o', InputOption::VALUE_NONE, 'Loop the projection only once, then exit'); | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output): int | ||
{ | ||
$keepRunning = ! $input->getOption(static::OPTION_RUN_ONCE); | ||
$keepRunning = ! $input->getOption(self::OPTION_RUN_ONCE); | ||
$output->writeln( | ||
\sprintf( | ||
'<action>Starting projection <highlight>%s</highlight>. Keep running: <highlight>%s</highlight></action>', | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -42,11 +42,16 @@ public function handle(Envelope $envelope, StackInterface $stack): Envelope | |
$this->eventStore->rollback(); | ||
|
||
if ($e instanceof HandlerFailedException) { | ||
$method = 'getWrappedExceptions'; | ||
if (! \method_exists($e, $method)) { | ||
$method = 'getNestedExceptions'; | ||
} | ||
|
||
// Remove all HandledStamp from the envelope so the retry will execute all handlers again. | ||
// When a handler fails, the queries of allegedly successful previous handlers just got rolled back. | ||
throw new HandlerFailedException( | ||
$e->getEnvelope()->withoutAll(HandledStamp::class), | ||
$e->getNestedExceptions() | ||
$e->$method() | ||
); | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
/** | ||
* This file is part of prooph/event-store-symfony-bundle. | ||
* (c) 2014-2022 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2024 Alexander Miertsch <[email protected]> | ||
* (c) 2015-2024 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
Oops, something went wrong.