Skip to content

Commit

Permalink
Merge pull request #90 from lunetics/symfony_6
Browse files Browse the repository at this point in the history
Symfony 6
  • Loading branch information
codeliner authored Feb 7, 2022
2 parents 0489444 + 9ded473 commit 34204bb
Show file tree
Hide file tree
Showing 70 changed files with 174 additions and 144 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ jobs:
strategy:
matrix:
symfony-version:
- "3.4.*"
- "4.4.*"
- "5.2.*"
- "6.0.*"
php-version:
- "7.4"
- "8.0"
- "8.1"
operating-system:
- "ubuntu-latest"

runs-on: ${{ matrix.operating-system }}
env:
COMPOSER_MEMORY_LIMIT: -1
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file, in reverse

## [0.5.0] - 2018-05-03

### Added

- Support for Symfony 6
- Support for PHP 8.1

### Deprecated

- Support for Symfony 3.x and 4.x (Use version v9.x)

## [0.5.0] - 2018-05-03

### Added

- Allow services referenced in config to be prefixed with @ (#41)
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
"symfony/yaml" : "^3.4 || ^4.4 || ^5.2 || ^6.0",
"bookdown/bookdown": "^1.1",
"prooph/bookdown-template": "^0.3",
"friendsofphp/php-cs-fixer": "^2.8.1",
"prooph/php-cs-fixer-config": "^0.4",
"friendsofphp/php-cs-fixer": "^3.5",
"prooph/php-cs-fixer-config": "^0.5.0",
"matthiasnoback/symfony-dependency-injection-test": "^3.1 || ^4.1",
"phpstan/phpstan": "^0.12"
},
Expand Down
8 changes: 6 additions & 2 deletions src/Command/AbstractProjectionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -49,8 +49,11 @@ abstract class AbstractProjectionCommand extends Command
protected $projection;

private ContainerInterface $projectionManagerForProjectionsLocator;

private ContainerInterface $projectionsLocator;

private ContainerInterface $projectionReadModelLocator;

private ContainerInterface $projectionOptionsLocator;

public function __construct(
Expand Down Expand Up @@ -108,6 +111,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
throw new RuntimeException('Projection was not created');
}
$output->writeln(\vsprintf('<header>Initialized projection "%s"</header>', \is_array($this->projectionName) ? $this->projectionName : [$this->projectionName]));

try {
$state = $this->projectionManager->fetchProjectionStatus($this->projectionName)->getValue();
} catch (\Prooph\EventStore\Exception\RuntimeException $e) {
Expand Down
4 changes: 2 additions & 2 deletions src/Command/FormatsOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Command/ProjectionDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
9 changes: 7 additions & 2 deletions src/Command/ProjectionNamesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -26,12 +26,17 @@ class ProjectionNamesCommand extends Command
use FormatsOutput;

private const ARGUMENT_FILTER = 'filter';

private const OPTION_REGEX = 'regex';

private const OPTION_LIMIT = 'limit';

private const OPTION_OFFSET = 'offset';

private const OPTION_MANAGER = 'manager';

private ContainerInterface $projectionManagersLocator;

private array $projectionManagerNames;

public function __construct(ContainerInterface $projectionManagersLocator, array $projectionManagerNames)
Expand Down
4 changes: 2 additions & 2 deletions src/Command/ProjectionResetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
7 changes: 4 additions & 3 deletions src/Command/ProjectionRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -35,7 +35,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$keepRunning = ! $input->getOption(static::OPTION_RUN_ONCE);
$output->writeln(
\sprintf(
'<action>Starting projection <highlight>%s</highlight>. Keep running: <highlight>%s</highlight></action>', $this->projectionName,
'<action>Starting projection <highlight>%s</highlight>. Keep running: <highlight>%s</highlight></action>',
$this->projectionName,
$keepRunning === true ? 'enabled' : 'disabled'
)
);
Expand Down
4 changes: 2 additions & 2 deletions src/Command/ProjectionStateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Command/ProjectionStopCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Command/ProjectionStreamPositionsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Compiler/MetadataEnricherPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Compiler/PluginLocatorPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Compiler/PluginsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Compiler/ProjectionOptionsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Compiler/RegisterProjectionsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
5 changes: 3 additions & 2 deletions src/DependencyInjection/ProophEventStoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -27,6 +27,7 @@
final class ProophEventStoreExtension extends Extension
{
public const TAG_PROJECTION = 'prooph_event_store.projection';

public const TAG_PROJECTION_OPTIONS = 'prooph_event_store.projection_options';

public function getNamespace(): string
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/EventStoreException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/ActionEventEmitterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/DefaultActionEventEmitterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/DefaultEventStoreFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/EventStoreFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Factory/ProjectionManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Messenger/EventStoreTransactionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Projection/Options/ProjectionOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Projection/Options/ProjectionOptionsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of prooph/event-store-symfony-bundle.
* (c) 2014-2021 Alexander Miertsch <[email protected]>
* (c) 2015-2021 Sascha-Oliver Prolic <[email protected]>
* (c) 2014-2022 Alexander Miertsch <[email protected]>
* (c) 2015-2022 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
Loading

0 comments on commit 34204bb

Please sign in to comment.