From b37db8e3ad3c366935e6d81cad89504276aba795 Mon Sep 17 00:00:00 2001 From: Mistral OZ - MIO Date: Tue, 30 Nov 2021 08:34:15 +0100 Subject: [PATCH] Support for GraphQLite v5 - Rename namespace from Graphqlite to GraphQLite - Upgrade phpstan to v1 - Upgrade graphqlite-bundle to v5 - Upgrade tdbm-graphql to v5 --- ... TheCodingMachineTdbmGraphQLExtension.php} | 10 ++++++---- Tests/Fixtures/ExposeConfiguration.php | 2 +- Tests/Fixtures/config/services.yaml | 2 +- Tests/FunctionalTest.php | 8 ++++---- ...ernel.php => TdbmGraphQLTestingKernel.php} | 19 ++++++++++--------- TheCodingMachineTdbmGraphQLBundle.php | 10 ++++++++++ TheCodingMachineTdbmGraphqlBundle.php | 10 ---------- composer.json | 12 ++++++------ 8 files changed, 38 insertions(+), 35 deletions(-) rename DependencyInjection/{TheCodingMachineTdbmGraphqlExtension.php => TheCodingMachineTdbmGraphQLExtension.php} (71%) rename Tests/{TdbmGraphqlTestingKernel.php => TdbmGraphQLTestingKernel.php} (79%) create mode 100644 TheCodingMachineTdbmGraphQLBundle.php delete mode 100644 TheCodingMachineTdbmGraphqlBundle.php diff --git a/DependencyInjection/TheCodingMachineTdbmGraphqlExtension.php b/DependencyInjection/TheCodingMachineTdbmGraphQLExtension.php similarity index 71% rename from DependencyInjection/TheCodingMachineTdbmGraphqlExtension.php rename to DependencyInjection/TheCodingMachineTdbmGraphQLExtension.php index 322e15c..d3bf3a8 100644 --- a/DependencyInjection/TheCodingMachineTdbmGraphqlExtension.php +++ b/DependencyInjection/TheCodingMachineTdbmGraphQLExtension.php @@ -1,7 +1,7 @@ $configs + * * @throws \InvalidArgumentException When provided tag is not defined in this extension */ - public function load(array $configs, ContainerBuilder $container) + public function load(array $configs, ContainerBuilder $container) : void { - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/container')); + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/container')); $loader->load('tdbmgraphql.xml'); } } diff --git a/Tests/Fixtures/ExposeConfiguration.php b/Tests/Fixtures/ExposeConfiguration.php index 8804a20..284268c 100644 --- a/Tests/Fixtures/ExposeConfiguration.php +++ b/Tests/Fixtures/ExposeConfiguration.php @@ -1,7 +1,7 @@ loadFromExtension('graphqlite', array( 'namespace' => [ - 'controllers' => ['TheCodingMachine\\Graphqlite\\Bundle\\Tests\\Fixtures\\Controller\\'], - 'types' => ['TheCodingMachine\\Graphqlite\\Bundle\\Tests\\Fixtures\\Types\\', 'TheCodingMachine\\Graphqlite\\Bundle\\Tests\\Fixtures\\Entities\\'] + 'controllers' => ['TheCodingMachine\\GraphQLite\\Bundle\\Tests\\Fixtures\\Controller\\'], + 'types' => ['TheCodingMachine\\GraphQLite\\Bundle\\Tests\\Fixtures\\Types\\', 'TheCodingMachine\\GraphQLite\\Bundle\\Tests\\Fixtures\\Entities\\'] ] )); }); diff --git a/TheCodingMachineTdbmGraphQLBundle.php b/TheCodingMachineTdbmGraphQLBundle.php new file mode 100644 index 0000000..b7cbd54 --- /dev/null +++ b/TheCodingMachineTdbmGraphQLBundle.php @@ -0,0 +1,10 @@ +=7.2", - "thecodingmachine/graphqlite-bundle": "^4", + "thecodingmachine/graphqlite-bundle": "^5", "thecodingmachine/tdbm-bundle": "^5.2", - "thecodingmachine/tdbm-graphql": "~4.0", + "thecodingmachine/tdbm-graphql": "^5.0", "symfony/framework-bundle": "^4.1.9 | ^5" }, "require-dev": { "symfony/security-bundle": "^4.1.9 | ^5", "symfony/yaml": "^4.1.9 | ^5", "phpunit/phpunit": "^8.0.4", - "phpstan/phpstan-shim": "^0.11.4", + "phpstan/phpstan": "^1", "php-coveralls/php-coveralls": "^2.1" }, "scripts": { - "phpstan": "phpstan analyse TheCodingMachineTdbmGraphqlBundle.php DependencyInjection/ Resources/ -c phpstan.neon --level=7 --no-progress" + "phpstan": "phpstan analyse TheCodingMachineTdbmGraphQLBundle.php DependencyInjection/ Resources/ -c phpstan.neon --level=7 --no-progress" }, "autoload" : { "psr-4" : { - "TheCodingMachine\\Tdbm\\Graphql\\Bundle\\" : "" + "TheCodingMachine\\Tdbm\\GraphQL\\Bundle\\" : "" } }, "extra": { "branch-alias": { - "dev-master": "4.1.x-dev" + "dev-master": "5.0.x-dev" } }, "minimum-stability": "dev",