Skip to content

Commit 77f1020

Browse files
authored
Merge pull request #39 from moufmouf/symfony5
Updating to Symfony 5
2 parents 8030610 + 65682ca commit 77f1020

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"require": {
1212
"thecodingmachine/tdbm": "~5.1.0",
13-
"symfony/filesystem": "^2.0 || ^3.0 || ^4.0",
13+
"symfony/filesystem": "^2.0 || ^3.0 || ^4.0 || ^5.0",
1414
"psr/container": "^1",
1515
"thecodingmachine/graphqlite": "^4",
1616
"thecodingmachine/tdbm-fluid-schema-builder": "^1",
@@ -20,7 +20,7 @@
2020
"phpunit/phpunit": "^6.5.14",
2121
"satooshi/php-coveralls": "^1.1",
2222
"mouf/picotainer": "^1.1",
23-
"symfony/cache": "^4.2.4"
23+
"symfony/cache": "^4.2.4 || ^5"
2424
},
2525
"autoload": {
2626
"psr-4": {

tests/GraphQLTypeGeneratorTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace TheCodingMachine\Tdbm\GraphQL;
44

5+
use Symfony\Component\Cache\Adapter\ArrayAdapter;
6+
use Symfony\Component\Cache\Psr16Cache;
57
use function copy;
68
use Doctrine\Common\Annotations\AnnotationRegistry;
79
use Doctrine\Common\Cache\ArrayCache;
@@ -81,7 +83,7 @@ public function setUp()
8183
{
8284
$this->mainContainer = new Picotainer([
8385
Schema::class => function (ContainerInterface $container) {
84-
$factory = new SchemaFactory(new \Symfony\Component\Cache\Simple\ArrayCache(), $container->get(BasicAutoWiringContainer::class));
86+
$factory = new SchemaFactory(new Psr16Cache(new ArrayAdapter()), $container->get(BasicAutoWiringContainer::class));
8587
$factory->addTypeNamespace('TheCodingMachine\\Tdbm\\GraphQL\\Tests\\GraphQL');
8688
$factory->addTypeNamespace('TheCodingMachine\\Tdbm\\GraphQL\\Tests\\Beans');
8789
$factory->addTypeNamespace('TheCodingMachine\\Tdbm\\GraphQL\\Tests\\DAOs');

0 commit comments

Comments
 (0)