Skip to content

Commit f76b254

Browse files
authored
Merge pull request #3 from IDCI-Consulting/feat/symfony-6
Update: Symfony 6 compatibility
2 parents 836ded6 + b614c37 commit f76b254

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

Client/GraphQLApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GraphQLApiClient implements GraphQLApiClientInterface
3030
private $translator;
3131

3232
/**
33-
* @var RedisCacheHandler
33+
* @var AdapterInterface
3434
*/
3535
private $cache;
3636

DependencyInjection/IDCIGraphQLClientExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function load(array $configs, ContainerBuilder $container)
2121
$container->setParameter('idci_graphql_client.clients', $config['clients']);
2222
}
2323

24-
public function getAlias()
24+
public function getAlias(): string
2525
{
2626
return 'idci_graphql_client';
2727
}

IDCIGraphQLClientBundle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use IDCI\Bundle\GraphQLClientBundle\DependencyInjection\Compiler\GraphQLApiClientCompilerPass;
66
use IDCI\Bundle\GraphQLClientBundle\DependencyInjection\IDCIGraphQLClientExtension;
77
use Symfony\Component\DependencyInjection\ContainerBuilder;
8+
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
89
use Symfony\Component\HttpKernel\Bundle\Bundle;
910

1011
class IDCIGraphQLClientBundle extends Bundle
@@ -16,7 +17,7 @@ public function build(ContainerBuilder $container)
1617
$container->addCompilerPass(new GraphQLApiClientCompilerPass());
1718
}
1819

19-
public function getContainerExtension()
20+
public function getContainerExtension(): ExtensionInterface
2021
{
2122
return new IDCIGraphQLClientExtension();
2223
}

composer.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,17 @@
1313
],
1414
"require": {
1515
"php": "^7.1 || ^8.0",
16-
"symfony/dependency-injection": "^3.3 || ^4.0 || ^5.0",
17-
"symfony/framework-bundle": "^3.0 || ^4.0 || ^5.0",
1816
"cfpinto/graphql": "^0.1.0",
19-
"predis/predis": "^1.1",
2017
"eightpoints/guzzle-bundle": "^8.0",
21-
"symfony/monolog-bundle": "^3.3"
18+
"symfony/dependency-injection": "^4.0 || ^5.0 || ^6.0",
19+
"symfony/framework-bundle": "^4.0 || ^5.0 || ^6.0"
2220
},
2321
"suggest": {
24-
"cache/adapter-bundle": "^1.2",
25-
"liip/monitor-bundle": "^2.12"
22+
"liip/monitor-bundle": "^2.12",
23+
"symfony/cache": "^4.0 || ^5.0 || ^6.0"
2624
},
2725
"require-dev": {
28-
"phpunit/phpunit": "^6.0"
26+
"phpunit/phpunit": "^9.0"
2927
},
3028
"autoload": {
3129
"psr-4": {

0 commit comments

Comments
 (0)