From eecb69cddee328b2daabfd4ab550bc5dbe4ba31b Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 15 Aug 2024 14:39:28 +1200 Subject: [PATCH] API Deprecate GraphQL --- src/GraphQL/Resolvers/Resolver.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/GraphQL/Resolvers/Resolver.php b/src/GraphQL/Resolvers/Resolver.php index bcc23190..98f84f07 100644 --- a/src/GraphQL/Resolvers/Resolver.php +++ b/src/GraphQL/Resolvers/Resolver.php @@ -12,9 +12,20 @@ use SilverStripe\ORM\ValidationException; use InvalidArgumentException; use Exception; +use SilverStripe\Dev\Deprecation; +/** + * @deprecated 5.3.0 Will be removed without equivalent functionality to replace it + */ class Resolver { + public function __construct() + { + Deprecation::withNoReplacement(function () { + Deprecation::notice('5.3.0', 'Will be removed without equivalent functionality to replace it', Deprecation::SCOPE_CLASS); + }); + } + /** * @param $value * @return object