From 3bf42cde191780e22077545b94660f7762b5bbcb Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Thu, 20 Jan 2022 13:25:27 -0700 Subject: [PATCH] - Update namespaces to be WPGraphQL\Labs --- composer.json | 2 +- composer.lock | 20 ++++++++++++------- src/Admin/Editor.php | 10 +++++----- src/Admin/Settings.php | 4 ++-- src/AdminErrors.php | 4 ++-- src/Document.php | 8 ++++---- src/Document/Description.php | 4 ++-- src/Document/Grant.php | 8 ++++---- src/Document/Loader.php | 4 ++-- src/Document/MaxAge.php | 8 ++++---- src/GraphiQL/GraphiQL.php | 2 +- src/Utils.php | 2 +- .../AllowDenyQueryDocument.php | 8 ++++---- tests/wpunit/AdminSettingsCacheTest.php | 4 ++-- tests/wpunit/AllowDenyQueryRulesTest.php | 8 ++++---- tests/wpunit/CacheIsFasterTest.php | 2 +- tests/wpunit/MutationCreateDocumentTest.php | 2 +- tests/wpunit/UtilsTest.php | 4 ++-- wp-graphql-labs.php | 20 +++++++++---------- 19 files changed, 64 insertions(+), 60 deletions(-) diff --git a/composer.json b/composer.json index 8326dea1..dc501482 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "wordpress-plugin", "autoload": { "psr-4": { - "WPGraphQL\\PersistedQueries\\": "src/" + "WPGraphQL\\Labs\\": "src/" } }, "require-dev": { diff --git a/composer.lock b/composer.lock index e08d20ad..9a87fe64 100644 --- a/composer.lock +++ b/composer.lock @@ -9,16 +9,16 @@ "packages-dev": [ { "name": "antecedent/patchwork", - "version": "2.1.18", + "version": "2.1.19", "source": { "type": "git", "url": "https://github.com/antecedent/patchwork.git", - "reference": "c4077e223d6da058a840a325bc4b48631892e3d0" + "reference": "94fe587cb0a6c1695b1ddc650e877231be80b8bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/antecedent/patchwork/zipball/c4077e223d6da058a840a325bc4b48631892e3d0", - "reference": "c4077e223d6da058a840a325bc4b48631892e3d0", + "url": "https://api.github.com/repos/antecedent/patchwork/zipball/94fe587cb0a6c1695b1ddc650e877231be80b8bc", + "reference": "94fe587cb0a6c1695b1ddc650e877231be80b8bc", "shasum": "" }, "require": { @@ -51,9 +51,9 @@ ], "support": { "issues": "https://github.com/antecedent/patchwork/issues", - "source": "https://github.com/antecedent/patchwork/tree/2.1.18" + "source": "https://github.com/antecedent/patchwork/tree/2.1.19" }, - "time": "2022-01-19T11:06:53+00:00" + "time": "2022-01-20T04:47:04+00:00" }, { "name": "behat/gherkin", @@ -1937,6 +1937,9 @@ "illuminate/support": ">=4.0.0", "php": ">=5.3.0" }, + "replace": { + "mikemclin/laravel-wp-password": "self.version" + }, "require-dev": { "mockery/mockery": "~0.9", "phpunit/phpunit": "~4.0", @@ -2050,6 +2053,9 @@ "require": { "php": "^7.1 || ^8.0" }, + "replace": { + "myclabs/deep-copy": "self.version" + }, "require-dev": { "doctrine/collections": "^1.0", "doctrine/common": "^2.6", @@ -6834,5 +6840,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.0.0" } diff --git a/src/Admin/Editor.php b/src/Admin/Editor.php index 51d47d8b..edf0c191 100644 --- a/src/Admin/Editor.php +++ b/src/Admin/Editor.php @@ -5,12 +5,12 @@ * @package Wp_Graphql_Persisted_Queries */ -namespace WPGraphQL\PersistedQueries\Admin; +namespace WPGraphQL\Labs\Admin; -use WPGraphQL\PersistedQueries\AdminErrors; -use WPGraphQL\PersistedQueries\Document; -use WPGraphQL\PersistedQueries\Document\Grant; -use WPGraphQL\PersistedQueries\Document\MaxAge; +use WPGraphQL\Labs\AdminErrors; +use WPGraphQL\Labs\Document; +use WPGraphQL\Labs\Document\Grant; +use WPGraphQL\Labs\Document\MaxAge; use GraphQL\Error\SyntaxError; use GraphQL\Server\RequestError; diff --git a/src/Admin/Settings.php b/src/Admin/Settings.php index 4d4a896a..07c51467 100644 --- a/src/Admin/Settings.php +++ b/src/Admin/Settings.php @@ -5,9 +5,9 @@ * @package Wp_Graphql_Persisted_Queries */ -namespace WPGraphQL\PersistedQueries\Admin; +namespace WPGraphQL\Labs\Admin; -use WPGraphQL\PersistedQueries\Document\Grant; +use WPGraphQL\Labs\Document\Grant; class Settings { diff --git a/src/AdminErrors.php b/src/AdminErrors.php index 1f3c7e59..b1ac4c8d 100644 --- a/src/AdminErrors.php +++ b/src/AdminErrors.php @@ -5,9 +5,9 @@ * @package Wp_Graphql_Persisted_Queries */ -namespace WPGraphQL\PersistedQueries; +namespace WPGraphQL\Labs; -use WPGraphQL\PersistedQueries\Document; +use WPGraphQL\Labs\Document; class AdminErrors { diff --git a/src/Document.php b/src/Document.php index 52c503dd..b1c52888 100644 --- a/src/Document.php +++ b/src/Document.php @@ -5,11 +5,11 @@ * @package Wp_Graphql_Persisted_Queries */ -namespace WPGraphQL\PersistedQueries; +namespace WPGraphQL\Labs; -use WPGraphQL\PersistedQueries\Admin\Settings; -use WPGraphQL\PersistedQueries\AdminErrors; -use WPGraphQL\PersistedQueries\Utils; +use WPGraphQL\Labs\Admin\Settings; +use WPGraphQL\Labs\AdminErrors; +use WPGraphQL\Labs\Utils; use GraphQL\Error\SyntaxError; use GraphQL\Server\RequestError; diff --git a/src/Document/Description.php b/src/Document/Description.php index cf0460e3..7e4a9dd7 100644 --- a/src/Document/Description.php +++ b/src/Document/Description.php @@ -5,9 +5,9 @@ * @package Wp_Graphql_Persisted_Queries */ -namespace WPGraphQL\PersistedQueries\Document; +namespace WPGraphQL\Labs\Document; -use WPGraphQL\PersistedQueries\Document; +use WPGraphQL\Labs\Document; class Description { diff --git a/src/Document/Grant.php b/src/Document/Grant.php index b64fe671..041ab895 100644 --- a/src/Document/Grant.php +++ b/src/Document/Grant.php @@ -5,11 +5,11 @@ * @package Wp_Graphql_Persisted_Queries */ -namespace WPGraphQL\PersistedQueries\Document; +namespace WPGraphQL\Labs\Document; -use WPGraphQL\PersistedQueries\Admin\Settings; -use WPGraphQL\PersistedQueries\Document; -use WPGraphQL\PersistedQueries\ValidationRules\AllowDenyQueryDocument; +use WPGraphQL\Labs\Admin\Settings; +use WPGraphQL\Labs\Document; +use WPGraphQL\Labs\ValidationRules\AllowDenyQueryDocument; use GraphQL\Server\RequestError; class Grant { diff --git a/src/Document/Loader.php b/src/Document/Loader.php index 541412f3..bbf5d591 100644 --- a/src/Document/Loader.php +++ b/src/Document/Loader.php @@ -5,9 +5,9 @@ * @package Wp_Graphql_Persisted_Queries */ -namespace WPGraphQL\PersistedQueries\Document; +namespace WPGraphQL\Labs\Document; -use WPGraphQL\PersistedQueries\Document; +use WPGraphQL\Labs\Document; use GraphQL\Server\RequestError; class Loader { diff --git a/src/Document/MaxAge.php b/src/Document/MaxAge.php index 82d77b77..68358955 100644 --- a/src/Document/MaxAge.php +++ b/src/Document/MaxAge.php @@ -5,11 +5,11 @@ * @package Wp_Graphql_Persisted_Queries */ -namespace WPGraphQL\PersistedQueries\Document; +namespace WPGraphQL\Labs\Document; -use WPGraphQL\PersistedQueries\Admin\Settings; -use WPGraphQL\PersistedQueries\Document; -use WPGraphQL\PersistedQueries\Utils; +use WPGraphQL\Labs\Admin\Settings; +use WPGraphQL\Labs\Document; +use WPGraphQL\Labs\Utils; use GraphQL\Server\RequestError; class MaxAge { diff --git a/src/GraphiQL/GraphiQL.php b/src/GraphiQL/GraphiQL.php index 188390f6..020cb89a 100644 --- a/src/GraphiQL/GraphiQL.php +++ b/src/GraphiQL/GraphiQL.php @@ -1,6 +1,6 @@ setPersistentQueryLoader( - [ '\WPGraphQL\PersistedQueries\Document\Loader', 'by_query_id' ] + [ '\WPGraphQL\Labs\Document\Loader', 'by_query_id' ] ); }, 10,