Skip to content

Commit 490770b

Browse files
committed
Update fivelab/amqp to 2.2.0
1 parent b1764d5 commit 490770b

20 files changed

Lines changed: 205 additions & 390 deletions

.github/workflows/tests.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,24 @@ jobs:
4040
matrix:
4141
include:
4242
- php: 8.2
43-
symfony: '~5.4'
44-
45-
- php: 8.2
46-
symfony: '~6.0'
43+
symfony: '~6.4'
4744

4845
- php: 8.2
4946
symfony: '~7.0'
5047

5148
- php: 8.3
52-
symfony: '~5.4'
49+
symfony: '~6.4'
5350

5451
- php: 8.3
55-
symfony: '~6.0'
52+
symfony: '~7.0'
5653

57-
- php: 8.3
54+
- php: 8.4
55+
symfony: '~6.4'
56+
57+
- php: 8.4
5858
symfony: '~7.0'
5959

60+
6061
steps:
6162
- name: Checkout
6263
uses: actions/checkout@v2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.2-cli
1+
FROM php:8.4-cli
22

33
MAINTAINER Vitalii Zhuk <v.zhuk@fivelab.org>
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Before create the PR or merge into develop, please run next commands for validat
148148
./bin/phpunit
149149
150150
./bin/phpcs --config-set show_warnings 0
151-
./bin/phpcs --standard=vendor/escapestudios/symfony2-coding-standard/Symfony/ src/
151+
./bin/phpcs --standard=src/phpcs-ruleset.xml src/
152152
./bin/phpcs --standard=tests/phpcs-ruleset.xml tests/
153153
154154
```

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@
2020

2121
"require": {
2222
"php": "^8.2",
23-
"fivelab/amqp": "~2.1.0",
24-
"symfony/dependency-injection": "~5.4 | ~6.0 | ~7.0",
25-
"symfony/framework-bundle": "~5.4 | ~6.0 | ~7.0"
23+
"fivelab/amqp": "~2.2.0",
24+
"symfony/dependency-injection": "~6.4 | ~7.0",
25+
"symfony/framework-bundle": "~6.4 | ~7.0"
2626
},
2727

2828
"require-dev": {
29-
"phpunit/phpunit": "~10.1",
30-
"phpmetrics/phpmetrics": "^2.0",
29+
"phpunit/phpunit": "~11.5",
30+
"phpmetrics/phpmetrics": "^3.0@rc",
3131
"escapestudios/symfony2-coding-standard": "~3.5",
32-
"matthiasnoback/symfony-dependency-injection-test": "~4.0",
33-
"symfony/console": "~5.4 | ~6.0",
34-
"symfony/expression-language": "~5.4 | ~6.0",
32+
"matthiasnoback/symfony-dependency-injection-test": "~6.0",
33+
"symfony/console": "~6.4 | ~7.0",
34+
"symfony/expression-language": "~6.4 | ~7.0",
3535
"fivelab/ci-rules": "dev-master"
3636
},
3737

src/Connection/Registry/ConnectionFactoryRegistry.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,18 @@
1616
use FiveLab\Bundle\AmqpBundle\Exception\ConnectionFactoryNotFoundException;
1717
use FiveLab\Component\Amqp\Connection\ConnectionFactoryInterface;
1818

19-
/**
20-
* Default connection factory registry.
21-
*/
2219
class ConnectionFactoryRegistry implements ConnectionFactoryRegistryInterface
2320
{
2421
/**
25-
* @var array|ConnectionFactoryInterface
22+
* @var array<ConnectionFactoryInterface>
2623
*/
2724
private array $connectionFactories = [];
2825

29-
/**
30-
* Add connection factory to registry
31-
*
32-
* @param string $name
33-
* @param ConnectionFactoryInterface $connectionFactory
34-
*/
3526
public function add(string $name, ConnectionFactoryInterface $connectionFactory): void
3627
{
3728
$this->connectionFactories[$name] = $connectionFactory;
3829
}
3930

40-
/**
41-
* {@inheritdoc}
42-
*/
4331
public function get(string $name): ConnectionFactoryInterface
4432
{
4533
if (\array_key_exists($name, $this->connectionFactories)) {

src/Connection/Registry/ConnectionFactoryRegistryInterface.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use FiveLab\Bundle\AmqpBundle\Exception\ConnectionFactoryNotFoundException;
1717
use FiveLab\Component\Amqp\Connection\ConnectionFactoryInterface;
1818

19-
/**
20-
* All connection factories should implement this interface.
21-
*/
2219
interface ConnectionFactoryRegistryInterface
2320
{
2421
/**

0 commit comments

Comments
 (0)