chore(SF7): Allow Symfony 7

This commit is contained in:
2025-02-26 18:04:17 +01:00
parent fa6f9d1080
commit efb3518138
31 changed files with 42 additions and 42 deletions

View File

@@ -12,16 +12,16 @@
"require": {
"php": "^8.1",
"digital-craftsman/ids": "0.5.*",
"symfony/messenger": "^6.2",
"symfony/messenger": "^6.4|^7.2",
"psr/clock": "^1.0.0",
"symfony/uid": "^6.2"
"symfony/uid": "^6.4|^7.2"
},
"require-dev": {
"dg/bypass-finals": "^1.4",
"friendsofphp/php-cs-fixer": "^3.12",
"phpunit/phpunit": "^9.5",
"zapoyok/phpunit-php": "@dev",
"symfony/phpunit-bridge": "^6.2"
"symfony/phpunit-bridge": "^6.4|^7.2"
},
"repositories": [
{

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -26,7 +26,7 @@ final class SccCQRSExtension extends Extension
// $configuration = new Configuration();
//
// $config = $processor->processConfiguration($configuration, $configs);
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.php');
}
}

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -26,7 +26,7 @@ final class ZapoyokCQRSExtension extends Extension
// $configuration = new Configuration();
//
// $config = $processor->processConfiguration($configuration, $configs);
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.php');
}
}

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -22,7 +22,7 @@ trait MessageTrait
public function stampIds(
?MessageId $messageId = null,
?MessageId $replyToId = null,
?MessageId $correlationId = null
?MessageId $correlationId = null,
): static {
$this->messageId = $messageId;
$this->replyToId = $replyToId;
@@ -44,7 +44,7 @@ trait MessageTrait
public function stampAsResponse(
?MessageId $replyTo,
?MessageId $correlationId
?MessageId $correlationId,
): static {
return $this->stampIds(
MessageId::nextId(),

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -21,11 +21,11 @@ return static function (ContainerConfigurator $containerConfigurator): void {
->autoconfigure()
;
$services->load('Zapoyok\CQRSBundle\\', __DIR__ . '/../../../src')
$services->load('Zapoyok\CQRSBundle\\', __DIR__.'/../../../src')
->exclude([
__DIR__,
__DIR__ . '/../../../src/ZapoyokCQRSBundle.php',
__DIR__ . '/../../../src/{DependencyInjection}',
__DIR__.'/../../../src/ZapoyokCQRSBundle.php',
__DIR__.'/../../../src/{DependencyInjection}',
])
;
};

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
/**
* This file is part of the zapoyok.info project.
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@@ -23,12 +23,12 @@ use Doctrine\Deprecations\Deprecation;
*/
setlocale(\LC_ALL, 'en_US.UTF-8');
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__.'/../vendor/autoload.php';
if (class_exists(Deprecation::class)) {
Deprecation::enableWithTriggerError();
}
if (file_exists($file = __DIR__ . '/custom_bootstrap.php')) {
if (file_exists($file = __DIR__.'/custom_bootstrap.php')) {
require_once $file;
}