From 96ee562b5873b7338698a323279f1d7a240cc13c Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 31 Jul 2024 12:47:14 +1200 Subject: [PATCH] API Remove GraphQL --- src/Forms/FormRequestHandler.php | 1 - src/ORM/Connect/NullDatabase.php | 3 +-- tests/php/Control/Middleware/CanonicalURLMiddlewareTest.php | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Forms/FormRequestHandler.php b/src/Forms/FormRequestHandler.php index 1071f92aba8..4987ad5cb93 100644 --- a/src/Forms/FormRequestHandler.php +++ b/src/Forms/FormRequestHandler.php @@ -77,7 +77,6 @@ public function __construct(Form $form) public function Link($action = null) { // Forms without parent controller have no link; - // E.g. Submission handled via graphql $controller = $this->form->getController(); if (empty($controller)) { return null; diff --git a/src/ORM/Connect/NullDatabase.php b/src/ORM/Connect/NullDatabase.php index 214998c37e3..dc4625641b2 100644 --- a/src/ORM/Connect/NullDatabase.php +++ b/src/ORM/Connect/NullDatabase.php @@ -8,8 +8,7 @@ /** * Utility class required due to bad coupling in framework. * Not every framework execution should require a working database connection. - * For example, when generating class and config manifests for deployment bundles, - * or when generating code in a silverstripe/graphql schema build. + * For example, when generating class and config manifests for deployment bundles * * This class creates the required no-ops to fulfill the contract, * and create exceptions as required. diff --git a/tests/php/Control/Middleware/CanonicalURLMiddlewareTest.php b/tests/php/Control/Middleware/CanonicalURLMiddlewareTest.php index 5689fb767d6..db340baf28a 100644 --- a/tests/php/Control/Middleware/CanonicalURLMiddlewareTest.php +++ b/tests/php/Control/Middleware/CanonicalURLMiddlewareTest.php @@ -180,7 +180,6 @@ public function testRedirectTrailingSlashIgnorePaths(bool $addTrailingSlash, boo $requestSlash = $requestHasSlash ? '/' : ''; $noRedirectPaths = [ "/admin{$requestSlash}", - "/admin/graphql{$requestSlash}", "/dev/tasks/my-task{$requestSlash}", ]; $allowRedirectPaths = [