From 2475c2969286af2cea94ffbf7a007044d4ba8bb8 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 18 Oct 2022 14:15:51 +1300 Subject: [PATCH 1/4] ENH Update deprecation messages --- code/Extensions/UsedOnTableExtension.php | 2 +- code/Model/EmbedResource.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Extensions/UsedOnTableExtension.php b/code/Extensions/UsedOnTableExtension.php index e5ed5010c..b803c31e5 100644 --- a/code/Extensions/UsedOnTableExtension.php +++ b/code/Extensions/UsedOnTableExtension.php @@ -29,7 +29,7 @@ public function updateUsageExcludedClasses(array &$excludedClasses) * @var ArrayList $usage * @var DataObject $record * @see UsedOnTable::updateUsage - * @deprecated 4.7.0 Use self::updateUsageExcludedClasses instead + * @deprecated 4.7.0 Use updateUsageExcludedClasses() instead */ public function updateUsage(ArrayList &$usage, DataObject &$record) { diff --git a/code/Model/EmbedResource.php b/code/Model/EmbedResource.php index 9a9320030..6e9377168 100644 --- a/code/Model/EmbedResource.php +++ b/code/Model/EmbedResource.php @@ -3,7 +3,7 @@ namespace SilverStripe\AssetAdmin\Model; /** - * @deprecated 1.2..2.0 Use {@link \SilverStripe\View\Embed\EmbedResource} instead + * @deprecated 1.2 Use SilverStripe\View\Embed\EmbedResource instead */ class EmbedResource extends \SilverStripe\View\Embed\EmbedResource { From dac6e3aba534cb66322cba0d83c990df3f3f4a4a Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 25 Oct 2022 15:40:33 +1300 Subject: [PATCH 2/4] API Update deprecations --- _legacy/GraphQL/CreateFileMutationCreator.php | 4 +++- _legacy/GraphQL/CreateFolderMutationCreator.php | 4 +++- _legacy/GraphQL/DeleteFileMutationCreator.php | 8 +++++++- _legacy/GraphQL/DescendantFileCountType.php | 10 +++++++++- _legacy/GraphQL/FileFilterInputTypeCreator.php | 10 +++++++++- _legacy/GraphQL/FileInputTypeCreator.php | 4 +++- _legacy/GraphQL/FileInterfaceTypeCreator.php | 8 +++++++- _legacy/GraphQL/FileTypeCreator.php | 3 ++- _legacy/GraphQL/FileUsageType.php | 10 +++++++++- _legacy/GraphQL/FolderInputTypeCreator.php | 4 +++- _legacy/GraphQL/FolderTypeCreator.php | 8 +++++++- _legacy/GraphQL/MoveFilesMutationCreator.php | 4 +++- _legacy/GraphQL/PublicationMutationCreator.php | 8 +++++++- _legacy/GraphQL/PublicationNoticeType.php | 10 +++++++++- _legacy/GraphQL/PublicationResultType.php | 10 +++++++++- _legacy/GraphQL/PublishFileMutationCreator.php | 8 +++++++- .../GraphQL/ReadDescendantFileCountsQueryCreator.php | 8 +++++++- _legacy/GraphQL/ReadFileConnection.php | 8 +++++++- _legacy/GraphQL/ReadFileQueryCreator.php | 8 +++++++- _legacy/GraphQL/ReadFileUsageQueryCreator.php | 8 +++++++- _legacy/GraphQL/UnpublishFileMutationCreator.php | 8 +++++++- _legacy/GraphQL/UpdateFileMutationCreator.php | 4 +++- code/Extensions/UsedOnTableExtension.php | 4 +++- code/Model/EmbedResource.php | 9 +++++++-- code/Model/Embeddable.php | 2 +- 25 files changed, 146 insertions(+), 26 deletions(-) diff --git a/_legacy/GraphQL/CreateFileMutationCreator.php b/_legacy/GraphQL/CreateFileMutationCreator.php index a13551a12..aa63688e8 100644 --- a/_legacy/GraphQL/CreateFileMutationCreator.php +++ b/_legacy/GraphQL/CreateFileMutationCreator.php @@ -1,6 +1,7 @@ accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/CreateFolderMutationCreator.php b/_legacy/GraphQL/CreateFolderMutationCreator.php index 1b3b2b585..b66bb7d9a 100644 --- a/_legacy/GraphQL/CreateFolderMutationCreator.php +++ b/_legacy/GraphQL/CreateFolderMutationCreator.php @@ -1,6 +1,7 @@ accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/DeleteFileMutationCreator.php b/_legacy/GraphQL/DeleteFileMutationCreator.php index 2b26afa7f..c5b39cf62 100644 --- a/_legacy/GraphQL/DeleteFileMutationCreator.php +++ b/_legacy/GraphQL/DeleteFileMutationCreator.php @@ -2,6 +2,7 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use GraphQL\Type\Definition\ResolveInfo; use SilverStripe\Assets\File; use GraphQL\Type\Definition\Type; @@ -17,11 +18,16 @@ /** * Handles create and update * - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class DeleteFileMutationCreator extends MutationCreator implements OperationResolver { + public function __construct() + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + } + public function attributes() { return [ diff --git a/_legacy/GraphQL/DescendantFileCountType.php b/_legacy/GraphQL/DescendantFileCountType.php index a4b3e3da1..3d11b995d 100644 --- a/_legacy/GraphQL/DescendantFileCountType.php +++ b/_legacy/GraphQL/DescendantFileCountType.php @@ -2,6 +2,8 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; +use SilverStripe\GraphQL\Manager; use GraphQL\Type\Definition\Type; use SilverStripe\GraphQL\TypeCreator; @@ -13,13 +15,19 @@ * Define the return type for ReadDescendantFileCountsQueryCreator * Return as an array of object with an 'id' property and 'count' property. * - * @deprecated 1.8..2.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class DescendantFileCountType extends TypeCreator { /** * @return array */ + public function __construct(Manager $manager = null) + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); + } + public function attributes() { return [ diff --git a/_legacy/GraphQL/FileFilterInputTypeCreator.php b/_legacy/GraphQL/FileFilterInputTypeCreator.php index 520a40357..e0369f9c8 100644 --- a/_legacy/GraphQL/FileFilterInputTypeCreator.php +++ b/_legacy/GraphQL/FileFilterInputTypeCreator.php @@ -2,10 +2,12 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use GraphQL\Type\Definition\Type; use GraphQL\Type\Definition\EnumType; use SilverStripe\AssetAdmin\Controller\AssetAdminFile; use SilverStripe\Control\HTTPResponse_Exception; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\TypeCreator; use SilverStripe\Assets\File; use SilverStripe\ORM\Filterable; @@ -18,13 +20,19 @@ } /** - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class FileFilterInputTypeCreator extends TypeCreator { protected $inputObject = true; + public function __construct(Manager $manager = null) + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); + } + public function attributes() { return [ diff --git a/_legacy/GraphQL/FileInputTypeCreator.php b/_legacy/GraphQL/FileInputTypeCreator.php index a89436c97..b720322c9 100644 --- a/_legacy/GraphQL/FileInputTypeCreator.php +++ b/_legacy/GraphQL/FileInputTypeCreator.php @@ -2,6 +2,7 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use SilverStripe\GraphQL\Util\CaseInsensitiveFieldAccessor; use GraphQL\Type\Definition\Type; use SilverStripe\GraphQL\TypeCreator; @@ -13,7 +14,7 @@ /** * @todo Allow setting of Owner and ShowInSearch fields - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class FileInputTypeCreator extends TypeCreator { @@ -27,6 +28,7 @@ class FileInputTypeCreator extends TypeCreator public function __construct(Manager $manager = null) { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/FileInterfaceTypeCreator.php b/_legacy/GraphQL/FileInterfaceTypeCreator.php index ed3fb54c8..1ba0fde88 100644 --- a/_legacy/GraphQL/FileInterfaceTypeCreator.php +++ b/_legacy/GraphQL/FileInterfaceTypeCreator.php @@ -2,6 +2,7 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use SilverStripe\GraphQL\DataObjectInterfaceTypeCreator; use GraphQL\Type\Definition\Type; use SilverStripe\Assets\File; @@ -14,11 +15,16 @@ /** * @skipUpgrade - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class FileInterfaceTypeCreator extends DataObjectInterfaceTypeCreator { + public function __construct() + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + } + public function attributes() { return [ diff --git a/_legacy/GraphQL/FileTypeCreator.php b/_legacy/GraphQL/FileTypeCreator.php index d139fa2d5..248d1720d 100644 --- a/_legacy/GraphQL/FileTypeCreator.php +++ b/_legacy/GraphQL/FileTypeCreator.php @@ -21,7 +21,7 @@ /** * @skipUpgrade - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class FileTypeCreator extends TypeCreator { @@ -37,6 +37,7 @@ class FileTypeCreator extends TypeCreator public function __construct(Manager $manager = null) { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/FileUsageType.php b/_legacy/GraphQL/FileUsageType.php index c4a2183d4..485e8283c 100644 --- a/_legacy/GraphQL/FileUsageType.php +++ b/_legacy/GraphQL/FileUsageType.php @@ -2,7 +2,9 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use GraphQL\Type\Definition\Type; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\TypeCreator; use GraphQL\Type\Definition\ResolveInfo; use Exception; @@ -15,13 +17,19 @@ * Define the return type for ReadFileUsageQueryCreator. File usage is return as an array of object with an * 'id' property and 'inUseCount' property. * - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class FileUsageType extends TypeCreator { /** * @return array */ + public function __construct(Manager $manager = null) + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); + } + public function attributes() { return [ diff --git a/_legacy/GraphQL/FolderInputTypeCreator.php b/_legacy/GraphQL/FolderInputTypeCreator.php index a2c514da9..105bbde6f 100644 --- a/_legacy/GraphQL/FolderInputTypeCreator.php +++ b/_legacy/GraphQL/FolderInputTypeCreator.php @@ -2,6 +2,7 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use SilverStripe\GraphQL\Util\CaseInsensitiveFieldAccessor; use GraphQL\Type\Definition\Type; use SilverStripe\GraphQL\TypeCreator; @@ -12,7 +13,7 @@ } /** - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class FolderInputTypeCreator extends TypeCreator { @@ -26,6 +27,7 @@ class FolderInputTypeCreator extends TypeCreator public function __construct(Manager $manager = null) { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/FolderTypeCreator.php b/_legacy/GraphQL/FolderTypeCreator.php index 16e29996c..7271bdb8b 100644 --- a/_legacy/GraphQL/FolderTypeCreator.php +++ b/_legacy/GraphQL/FolderTypeCreator.php @@ -2,6 +2,7 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\Type; use SilverStripe\AssetAdmin\Controller\AssetAdminFile; @@ -22,11 +23,16 @@ /** * @skipUpgrade - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class FolderTypeCreator extends FileTypeCreator { + public function __construct() + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + } + public function attributes() { return [ diff --git a/_legacy/GraphQL/MoveFilesMutationCreator.php b/_legacy/GraphQL/MoveFilesMutationCreator.php index 5f81274d8..7d90a6e4e 100644 --- a/_legacy/GraphQL/MoveFilesMutationCreator.php +++ b/_legacy/GraphQL/MoveFilesMutationCreator.php @@ -1,6 +1,7 @@ accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/PublicationMutationCreator.php b/_legacy/GraphQL/PublicationMutationCreator.php index a06028422..67472fb6e 100644 --- a/_legacy/GraphQL/PublicationMutationCreator.php +++ b/_legacy/GraphQL/PublicationMutationCreator.php @@ -2,6 +2,7 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use SilverStripe\Assets\File; use SilverStripe\Versioned\Versioned; use SilverStripe\GraphQL\MutationCreator; @@ -16,7 +17,7 @@ } /** - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ abstract class PublicationMutationCreator extends MutationCreator implements OperationResolver { @@ -38,6 +39,11 @@ abstract class PublicationMutationCreator extends MutationCreator implements Ope /** * @return array */ + public function __construct() + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + } + public function attributes() { return [ diff --git a/_legacy/GraphQL/PublicationNoticeType.php b/_legacy/GraphQL/PublicationNoticeType.php index d464af30a..2d28fb616 100644 --- a/_legacy/GraphQL/PublicationNoticeType.php +++ b/_legacy/GraphQL/PublicationNoticeType.php @@ -2,7 +2,9 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use GraphQL\Type\Definition\Type; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\TypeCreator; use GraphQL\Type\Definition\ResolveInfo; use Exception; @@ -12,13 +14,19 @@ } /** - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class PublicationNoticeType extends TypeCreator { /** * @return array */ + public function __construct(Manager $manager = null) + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); + } + public function attributes() { return [ diff --git a/_legacy/GraphQL/PublicationResultType.php b/_legacy/GraphQL/PublicationResultType.php index d5fe678a0..9775b1fe5 100644 --- a/_legacy/GraphQL/PublicationResultType.php +++ b/_legacy/GraphQL/PublicationResultType.php @@ -2,7 +2,9 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use SilverStripe\Assets\File; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\TypeCreator; use GraphQL\Type\Definition\UnionType; @@ -11,10 +13,16 @@ } /** - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class PublicationResultType extends TypeCreator { + public function __construct(Manager $manager = null) + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); + } + public function toType() { return new UnionType([ diff --git a/_legacy/GraphQL/PublishFileMutationCreator.php b/_legacy/GraphQL/PublishFileMutationCreator.php index 60fcb570f..d79f18798 100644 --- a/_legacy/GraphQL/PublishFileMutationCreator.php +++ b/_legacy/GraphQL/PublishFileMutationCreator.php @@ -2,6 +2,7 @@ namespace SilverStripe\AssetAdmin\GraphQL; +use SilverStripe\Dev\Deprecation; use SilverStripe\Assets\File; use SilverStripe\Versioned\Versioned; use SilverStripe\GraphQL\OperationResolver; @@ -12,7 +13,7 @@ } /** - * @deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality. + * @deprecated 1.8.0 Use _graphql directory functionality instead */ class PublishFileMutationCreator extends PublicationMutationCreator implements OperationResolver { @@ -29,6 +30,11 @@ class PublishFileMutationCreator extends PublicationMutationCreator implements O /** * @return string */ + public function __construct() + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + } + protected function sourceStage() { return Versioned::DRAFT; diff --git a/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php b/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php index c4627b37a..111ca6ba2 100644 --- a/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php +++ b/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php @@ -1,6 +1,7 @@ quoteString(Folder::class); diff --git a/_legacy/GraphQL/ReadFileQueryCreator.php b/_legacy/GraphQL/ReadFileQueryCreator.php index f0c8599af..37212e580 100644 --- a/_legacy/GraphQL/ReadFileQueryCreator.php +++ b/_legacy/GraphQL/ReadFileQueryCreator.php @@ -1,6 +1,7 @@ accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/code/Extensions/UsedOnTableExtension.php b/code/Extensions/UsedOnTableExtension.php index b803c31e5..3269829f8 100644 --- a/code/Extensions/UsedOnTableExtension.php +++ b/code/Extensions/UsedOnTableExtension.php @@ -2,6 +2,7 @@ namespace SilverStripe\AssetAdmin\Extensions; +use SilverStripe\Dev\Deprecation; use SilverStripe\Assets\Folder; use SilverStripe\Assets\Shortcodes\FileLink; use SilverStripe\Core\Extension; @@ -29,10 +30,11 @@ public function updateUsageExcludedClasses(array &$excludedClasses) * @var ArrayList $usage * @var DataObject $record * @see UsedOnTable::updateUsage - * @deprecated 4.7.0 Use updateUsageExcludedClasses() instead + * @deprecated 1.7.0 Use updateUsageExcludedClasses() instead */ public function updateUsage(ArrayList &$usage, DataObject &$record) { + Deprecation::notice('1.7.0', 'Use updateUsageExcludedClasses() instead'); // noop } diff --git a/code/Model/EmbedResource.php b/code/Model/EmbedResource.php index 6e9377168..c95e52b7c 100644 --- a/code/Model/EmbedResource.php +++ b/code/Model/EmbedResource.php @@ -2,10 +2,15 @@ namespace SilverStripe\AssetAdmin\Model; +use SilverStripe\Dev\Deprecation; + /** - * @deprecated 1.2 Use SilverStripe\View\Embed\EmbedResource instead + * @deprecated 1.2.0 Use SilverStripe\View\Embed\EmbedResource instead */ class EmbedResource extends \SilverStripe\View\Embed\EmbedResource { - + public function __construct() + { + Deprecation::notice('1.2.0', 'Use SilverStripe\View\Embed\EmbedResource instead', Deprecation::SCOPE_CLASS); + } } diff --git a/code/Model/Embeddable.php b/code/Model/Embeddable.php index 51f3f90c6..8551611ad 100644 --- a/code/Model/Embeddable.php +++ b/code/Model/Embeddable.php @@ -3,7 +3,7 @@ namespace SilverStripe\AssetAdmin\Model; /** - * @deprecated 1.2..2.0 Use {@link Embeddable} instead + * @deprecated 1.2.0 Use Embeddable instead */ interface Embeddable extends \SilverStripe\View\Embed\Embeddable { From dab917e0e90a48568aab8cd096b1d37e946f25e5 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 25 Oct 2022 16:52:13 +1300 Subject: [PATCH 3/4] API Update __construct() signatures --- _legacy/GraphQL/DeleteFileMutationCreator.php | 4 +++- _legacy/GraphQL/FileInterfaceTypeCreator.php | 4 +++- _legacy/GraphQL/FolderTypeCreator.php | 4 +++- _legacy/GraphQL/PublicationMutationCreator.php | 4 +++- _legacy/GraphQL/PublishFileMutationCreator.php | 4 +++- .../ReadDescendantFileCountsQueryCreator.php | 4 +++- _legacy/GraphQL/ReadFileConnection.php | 14 +++++++++----- _legacy/GraphQL/ReadFileQueryCreator.php | 4 +++- _legacy/GraphQL/ReadFileUsageQueryCreator.php | 4 +++- _legacy/GraphQL/UnpublishFileMutationCreator.php | 4 +++- code/Model/EmbedResource.php | 6 +++++- 11 files changed, 41 insertions(+), 15 deletions(-) diff --git a/_legacy/GraphQL/DeleteFileMutationCreator.php b/_legacy/GraphQL/DeleteFileMutationCreator.php index c5b39cf62..d43f2a9e7 100644 --- a/_legacy/GraphQL/DeleteFileMutationCreator.php +++ b/_legacy/GraphQL/DeleteFileMutationCreator.php @@ -6,6 +6,7 @@ use GraphQL\Type\Definition\ResolveInfo; use SilverStripe\Assets\File; use GraphQL\Type\Definition\Type; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\MutationCreator; use SilverStripe\GraphQL\OperationResolver; use SilverStripe\ORM\DataList; @@ -23,9 +24,10 @@ class DeleteFileMutationCreator extends MutationCreator implements OperationResolver { - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } public function attributes() diff --git a/_legacy/GraphQL/FileInterfaceTypeCreator.php b/_legacy/GraphQL/FileInterfaceTypeCreator.php index 1ba0fde88..52e652066 100644 --- a/_legacy/GraphQL/FileInterfaceTypeCreator.php +++ b/_legacy/GraphQL/FileInterfaceTypeCreator.php @@ -4,6 +4,7 @@ use SilverStripe\Dev\Deprecation; use SilverStripe\GraphQL\DataObjectInterfaceTypeCreator; +use SilverStripe\GraphQL\Manager; use GraphQL\Type\Definition\Type; use SilverStripe\Assets\File; use SilverStripe\Assets\Folder; @@ -20,9 +21,10 @@ class FileInterfaceTypeCreator extends DataObjectInterfaceTypeCreator { - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } public function attributes() diff --git a/_legacy/GraphQL/FolderTypeCreator.php b/_legacy/GraphQL/FolderTypeCreator.php index 7271bdb8b..24583b508 100644 --- a/_legacy/GraphQL/FolderTypeCreator.php +++ b/_legacy/GraphQL/FolderTypeCreator.php @@ -11,6 +11,7 @@ use SilverStripe\Assets\Folder; use SilverStripe\ORM\Filterable; use SilverStripe\Versioned\Versioned; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\Pagination\Connection; use SilverStripe\GraphQL\TypeCreator; use SilverStripe\ORM\DataQuery; @@ -28,9 +29,10 @@ class FolderTypeCreator extends FileTypeCreator { - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } public function attributes() diff --git a/_legacy/GraphQL/PublicationMutationCreator.php b/_legacy/GraphQL/PublicationMutationCreator.php index 67472fb6e..e9bc76770 100644 --- a/_legacy/GraphQL/PublicationMutationCreator.php +++ b/_legacy/GraphQL/PublicationMutationCreator.php @@ -5,6 +5,7 @@ use SilverStripe\Dev\Deprecation; use SilverStripe\Assets\File; use SilverStripe\Versioned\Versioned; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\MutationCreator; use SilverStripe\GraphQL\OperationResolver; use GraphQL\Type\Definition\ResolveInfo; @@ -39,9 +40,10 @@ abstract class PublicationMutationCreator extends MutationCreator implements Ope /** * @return array */ - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } public function attributes() diff --git a/_legacy/GraphQL/PublishFileMutationCreator.php b/_legacy/GraphQL/PublishFileMutationCreator.php index d79f18798..f08824e9c 100644 --- a/_legacy/GraphQL/PublishFileMutationCreator.php +++ b/_legacy/GraphQL/PublishFileMutationCreator.php @@ -5,6 +5,7 @@ use SilverStripe\Dev\Deprecation; use SilverStripe\Assets\File; use SilverStripe\Versioned\Versioned; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\OperationResolver; use SilverStripe\Security\Member; @@ -30,9 +31,10 @@ class PublishFileMutationCreator extends PublicationMutationCreator implements O /** * @return string */ - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } protected function sourceStage() diff --git a/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php b/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php index 111ca6ba2..10b19ef57 100644 --- a/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php +++ b/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php @@ -7,6 +7,7 @@ use SilverStripe\AssetAdmin\Controller\AssetAdminFile; use SilverStripe\Assets\File; use SilverStripe\Assets\Folder; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\QueryCreator; use SilverStripe\ORM\DataList; use SilverStripe\Versioned\Versioned; @@ -22,9 +23,10 @@ class ReadDescendantFileCountsQueryCreator extends QueryCreator { - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } public function attributes() diff --git a/_legacy/GraphQL/ReadFileConnection.php b/_legacy/GraphQL/ReadFileConnection.php index d3da53ac6..efeeed1b1 100644 --- a/_legacy/GraphQL/ReadFileConnection.php +++ b/_legacy/GraphQL/ReadFileConnection.php @@ -18,6 +18,15 @@ */ class ReadFileConnection extends Connection { + /** + * @param string $connectionName + */ + public function __construct($connectionName) + { + Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($connectionName); + } + /** * Always sort by folders before files * @@ -25,11 +34,6 @@ class ReadFileConnection extends Connection * @param array $sortBy * @return SS_List */ - public function __construct() - { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); - } - protected function applySort($list, $sortBy) { $className = DB::get_conn()->quoteString(Folder::class); diff --git a/_legacy/GraphQL/ReadFileQueryCreator.php b/_legacy/GraphQL/ReadFileQueryCreator.php index 37212e580..a452abf55 100644 --- a/_legacy/GraphQL/ReadFileQueryCreator.php +++ b/_legacy/GraphQL/ReadFileQueryCreator.php @@ -7,6 +7,7 @@ use GraphQL\Type\Definition\UnionType; use SilverStripe\GraphQL\Pagination\PaginatedQueryCreator; use SilverStripe\GraphQL\Pagination\Connection; +use SilverStripe\GraphQL\Manager; use SilverStripe\Versioned\Versioned; if (!class_exists(PaginatedQueryCreator::class)) { @@ -25,9 +26,10 @@ class ReadFileQueryCreator extends PaginatedQueryCreator */ private $resultType; - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } public function attributes() diff --git a/_legacy/GraphQL/ReadFileUsageQueryCreator.php b/_legacy/GraphQL/ReadFileUsageQueryCreator.php index 6b130d09f..874ad2bcc 100644 --- a/_legacy/GraphQL/ReadFileUsageQueryCreator.php +++ b/_legacy/GraphQL/ReadFileUsageQueryCreator.php @@ -9,6 +9,7 @@ use GraphQL\Type\Definition\UnionType; use SilverStripe\GraphQL\Pagination\PaginatedQueryCreator; use SilverStripe\GraphQL\Pagination\Connection; +use SilverStripe\GraphQL\Manager; use SilverStripe\GraphQL\QueryCreator; use SilverStripe\Versioned\Versioned; @@ -23,9 +24,10 @@ class ReadFileUsageQueryCreator extends QueryCreator { - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } public function attributes() diff --git a/_legacy/GraphQL/UnpublishFileMutationCreator.php b/_legacy/GraphQL/UnpublishFileMutationCreator.php index c574afbb8..6ed1d113b 100644 --- a/_legacy/GraphQL/UnpublishFileMutationCreator.php +++ b/_legacy/GraphQL/UnpublishFileMutationCreator.php @@ -5,6 +5,7 @@ use SilverStripe\Dev\Deprecation; use SilverStripe\Assets\File; use SilverStripe\i18n\i18nEntityProvider; +use SilverStripe\GraphQL\Manager; use SilverStripe\Versioned\RecursivePublishable; use SilverStripe\Versioned\Versioned; use SilverStripe\Security\Member; @@ -31,9 +32,10 @@ class UnpublishFileMutationCreator extends PublicationMutationCreator implements /** * @return string */ - public function __construct() + public function __construct(Manager $manager = null) { Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + parent::__construct($manager); } protected function sourceStage() diff --git a/code/Model/EmbedResource.php b/code/Model/EmbedResource.php index c95e52b7c..40615618d 100644 --- a/code/Model/EmbedResource.php +++ b/code/Model/EmbedResource.php @@ -9,8 +9,12 @@ */ class EmbedResource extends \SilverStripe\View\Embed\EmbedResource { - public function __construct() + /** + * @param string $url + */ + public function __construct($url) { Deprecation::notice('1.2.0', 'Use SilverStripe\View\Embed\EmbedResource instead', Deprecation::SCOPE_CLASS); + parent::__construct($url); } } From 50f45ffaa7f6562bde1eb6a92ef06578d9fcd1e9 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 25 Oct 2022 17:31:53 +1300 Subject: [PATCH 4/4] API Update deprecation message --- _legacy/GraphQL/CreateFileMutationCreator.php | 4 ++-- _legacy/GraphQL/CreateFolderMutationCreator.php | 4 ++-- _legacy/GraphQL/DeleteFileMutationCreator.php | 4 ++-- _legacy/GraphQL/DescendantFileCountType.php | 4 ++-- _legacy/GraphQL/FileFilterInputTypeCreator.php | 4 ++-- _legacy/GraphQL/FileInputTypeCreator.php | 4 ++-- _legacy/GraphQL/FileInterfaceTypeCreator.php | 4 ++-- _legacy/GraphQL/FileTypeCreator.php | 4 ++-- _legacy/GraphQL/FileUsageType.php | 4 ++-- _legacy/GraphQL/FolderInputTypeCreator.php | 4 ++-- _legacy/GraphQL/FolderTypeCreator.php | 4 ++-- _legacy/GraphQL/MoveFilesMutationCreator.php | 4 ++-- _legacy/GraphQL/PublicationMutationCreator.php | 4 ++-- _legacy/GraphQL/PublicationNoticeType.php | 4 ++-- _legacy/GraphQL/PublicationResultType.php | 4 ++-- _legacy/GraphQL/PublishFileMutationCreator.php | 4 ++-- _legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php | 4 ++-- _legacy/GraphQL/ReadFileConnection.php | 4 ++-- _legacy/GraphQL/ReadFileQueryCreator.php | 4 ++-- _legacy/GraphQL/ReadFileUsageQueryCreator.php | 4 ++-- _legacy/GraphQL/UnpublishFileMutationCreator.php | 4 ++-- _legacy/GraphQL/UpdateFileMutationCreator.php | 4 ++-- 22 files changed, 44 insertions(+), 44 deletions(-) diff --git a/_legacy/GraphQL/CreateFileMutationCreator.php b/_legacy/GraphQL/CreateFileMutationCreator.php index aa63688e8..4ea2cb021 100644 --- a/_legacy/GraphQL/CreateFileMutationCreator.php +++ b/_legacy/GraphQL/CreateFileMutationCreator.php @@ -16,7 +16,7 @@ } /** * @todo Allow file upload (https://github.com/silverstripe/silverstripe-graphql/issues/19) - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class CreateFileMutationCreator extends MutationCreator implements OperationResolver { @@ -27,7 +27,7 @@ class CreateFileMutationCreator extends MutationCreator implements OperationReso public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/CreateFolderMutationCreator.php b/_legacy/GraphQL/CreateFolderMutationCreator.php index b66bb7d9a..8be5c5f23 100644 --- a/_legacy/GraphQL/CreateFolderMutationCreator.php +++ b/_legacy/GraphQL/CreateFolderMutationCreator.php @@ -17,7 +17,7 @@ /** * API available but currently not used, as create folder uses FormBuilder * - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class CreateFolderMutationCreator extends MutationCreator implements OperationResolver { @@ -28,7 +28,7 @@ class CreateFolderMutationCreator extends MutationCreator implements OperationRe public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/DeleteFileMutationCreator.php b/_legacy/GraphQL/DeleteFileMutationCreator.php index d43f2a9e7..f5f7bc12e 100644 --- a/_legacy/GraphQL/DeleteFileMutationCreator.php +++ b/_legacy/GraphQL/DeleteFileMutationCreator.php @@ -19,14 +19,14 @@ /** * Handles create and update * - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class DeleteFileMutationCreator extends MutationCreator implements OperationResolver { public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/DescendantFileCountType.php b/_legacy/GraphQL/DescendantFileCountType.php index 3d11b995d..eeab8695c 100644 --- a/_legacy/GraphQL/DescendantFileCountType.php +++ b/_legacy/GraphQL/DescendantFileCountType.php @@ -15,7 +15,7 @@ * Define the return type for ReadDescendantFileCountsQueryCreator * Return as an array of object with an 'id' property and 'count' property. * - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class DescendantFileCountType extends TypeCreator { @@ -24,7 +24,7 @@ class DescendantFileCountType extends TypeCreator */ public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/FileFilterInputTypeCreator.php b/_legacy/GraphQL/FileFilterInputTypeCreator.php index e0369f9c8..6699893b7 100644 --- a/_legacy/GraphQL/FileFilterInputTypeCreator.php +++ b/_legacy/GraphQL/FileFilterInputTypeCreator.php @@ -20,7 +20,7 @@ } /** - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class FileFilterInputTypeCreator extends TypeCreator { @@ -29,7 +29,7 @@ class FileFilterInputTypeCreator extends TypeCreator public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/FileInputTypeCreator.php b/_legacy/GraphQL/FileInputTypeCreator.php index b720322c9..80b81022c 100644 --- a/_legacy/GraphQL/FileInputTypeCreator.php +++ b/_legacy/GraphQL/FileInputTypeCreator.php @@ -14,7 +14,7 @@ /** * @todo Allow setting of Owner and ShowInSearch fields - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class FileInputTypeCreator extends TypeCreator { @@ -28,7 +28,7 @@ class FileInputTypeCreator extends TypeCreator public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/FileInterfaceTypeCreator.php b/_legacy/GraphQL/FileInterfaceTypeCreator.php index 52e652066..836eba6b9 100644 --- a/_legacy/GraphQL/FileInterfaceTypeCreator.php +++ b/_legacy/GraphQL/FileInterfaceTypeCreator.php @@ -16,14 +16,14 @@ /** * @skipUpgrade - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class FileInterfaceTypeCreator extends DataObjectInterfaceTypeCreator { public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/FileTypeCreator.php b/_legacy/GraphQL/FileTypeCreator.php index 248d1720d..59f009aef 100644 --- a/_legacy/GraphQL/FileTypeCreator.php +++ b/_legacy/GraphQL/FileTypeCreator.php @@ -21,7 +21,7 @@ /** * @skipUpgrade - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class FileTypeCreator extends TypeCreator { @@ -37,7 +37,7 @@ class FileTypeCreator extends TypeCreator public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/FileUsageType.php b/_legacy/GraphQL/FileUsageType.php index 485e8283c..a4c8fa0be 100644 --- a/_legacy/GraphQL/FileUsageType.php +++ b/_legacy/GraphQL/FileUsageType.php @@ -17,7 +17,7 @@ * Define the return type for ReadFileUsageQueryCreator. File usage is return as an array of object with an * 'id' property and 'inUseCount' property. * - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class FileUsageType extends TypeCreator { @@ -26,7 +26,7 @@ class FileUsageType extends TypeCreator */ public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/FolderInputTypeCreator.php b/_legacy/GraphQL/FolderInputTypeCreator.php index 105bbde6f..6d20022c9 100644 --- a/_legacy/GraphQL/FolderInputTypeCreator.php +++ b/_legacy/GraphQL/FolderInputTypeCreator.php @@ -13,7 +13,7 @@ } /** - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class FolderInputTypeCreator extends TypeCreator { @@ -27,7 +27,7 @@ class FolderInputTypeCreator extends TypeCreator public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/FolderTypeCreator.php b/_legacy/GraphQL/FolderTypeCreator.php index 24583b508..cf91b4beb 100644 --- a/_legacy/GraphQL/FolderTypeCreator.php +++ b/_legacy/GraphQL/FolderTypeCreator.php @@ -24,14 +24,14 @@ /** * @skipUpgrade - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class FolderTypeCreator extends FileTypeCreator { public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/MoveFilesMutationCreator.php b/_legacy/GraphQL/MoveFilesMutationCreator.php index 7d90a6e4e..00781e38d 100644 --- a/_legacy/GraphQL/MoveFilesMutationCreator.php +++ b/_legacy/GraphQL/MoveFilesMutationCreator.php @@ -17,7 +17,7 @@ } /** - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class MoveFilesMutationCreator extends MutationCreator implements OperationResolver { @@ -28,7 +28,7 @@ class MoveFilesMutationCreator extends MutationCreator implements OperationResol public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager); diff --git a/_legacy/GraphQL/PublicationMutationCreator.php b/_legacy/GraphQL/PublicationMutationCreator.php index e9bc76770..71452c8c1 100644 --- a/_legacy/GraphQL/PublicationMutationCreator.php +++ b/_legacy/GraphQL/PublicationMutationCreator.php @@ -18,7 +18,7 @@ } /** - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ abstract class PublicationMutationCreator extends MutationCreator implements OperationResolver { @@ -42,7 +42,7 @@ abstract class PublicationMutationCreator extends MutationCreator implements Ope */ public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/PublicationNoticeType.php b/_legacy/GraphQL/PublicationNoticeType.php index 2d28fb616..07d8ae81d 100644 --- a/_legacy/GraphQL/PublicationNoticeType.php +++ b/_legacy/GraphQL/PublicationNoticeType.php @@ -14,7 +14,7 @@ } /** - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class PublicationNoticeType extends TypeCreator { @@ -23,7 +23,7 @@ class PublicationNoticeType extends TypeCreator */ public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/PublicationResultType.php b/_legacy/GraphQL/PublicationResultType.php index 9775b1fe5..c117f9034 100644 --- a/_legacy/GraphQL/PublicationResultType.php +++ b/_legacy/GraphQL/PublicationResultType.php @@ -13,13 +13,13 @@ } /** - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class PublicationResultType extends TypeCreator { public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/PublishFileMutationCreator.php b/_legacy/GraphQL/PublishFileMutationCreator.php index f08824e9c..9f97de15a 100644 --- a/_legacy/GraphQL/PublishFileMutationCreator.php +++ b/_legacy/GraphQL/PublishFileMutationCreator.php @@ -14,7 +14,7 @@ } /** - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class PublishFileMutationCreator extends PublicationMutationCreator implements OperationResolver { @@ -33,7 +33,7 @@ class PublishFileMutationCreator extends PublicationMutationCreator implements O */ public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php b/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php index 10b19ef57..6ce2cdb31 100644 --- a/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php +++ b/_legacy/GraphQL/ReadDescendantFileCountsQueryCreator.php @@ -18,14 +18,14 @@ /** * GraphQL Query to retrieve the file count within a folder * - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class ReadDescendantFileCountsQueryCreator extends QueryCreator { public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/ReadFileConnection.php b/_legacy/GraphQL/ReadFileConnection.php index efeeed1b1..f1f4cabad 100644 --- a/_legacy/GraphQL/ReadFileConnection.php +++ b/_legacy/GraphQL/ReadFileConnection.php @@ -14,7 +14,7 @@ /** * Connection that sorts by folders first * - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class ReadFileConnection extends Connection { @@ -23,7 +23,7 @@ class ReadFileConnection extends Connection */ public function __construct($connectionName) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($connectionName); } diff --git a/_legacy/GraphQL/ReadFileQueryCreator.php b/_legacy/GraphQL/ReadFileQueryCreator.php index a452abf55..8eb6c8d85 100644 --- a/_legacy/GraphQL/ReadFileQueryCreator.php +++ b/_legacy/GraphQL/ReadFileQueryCreator.php @@ -16,7 +16,7 @@ /** * @skipUpgrade - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class ReadFileQueryCreator extends PaginatedQueryCreator { @@ -28,7 +28,7 @@ class ReadFileQueryCreator extends PaginatedQueryCreator public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/ReadFileUsageQueryCreator.php b/_legacy/GraphQL/ReadFileUsageQueryCreator.php index 874ad2bcc..b0dadf163 100644 --- a/_legacy/GraphQL/ReadFileUsageQueryCreator.php +++ b/_legacy/GraphQL/ReadFileUsageQueryCreator.php @@ -19,14 +19,14 @@ /** * GraphQL Query to retrieve usage count for files and folders on GraphQL request. * - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class ReadFileUsageQueryCreator extends QueryCreator { public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/UnpublishFileMutationCreator.php b/_legacy/GraphQL/UnpublishFileMutationCreator.php index 6ed1d113b..fa93535a5 100644 --- a/_legacy/GraphQL/UnpublishFileMutationCreator.php +++ b/_legacy/GraphQL/UnpublishFileMutationCreator.php @@ -15,7 +15,7 @@ } /** - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class UnpublishFileMutationCreator extends PublicationMutationCreator implements i18nEntityProvider { @@ -34,7 +34,7 @@ class UnpublishFileMutationCreator extends PublicationMutationCreator implements */ public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); parent::__construct($manager); } diff --git a/_legacy/GraphQL/UpdateFileMutationCreator.php b/_legacy/GraphQL/UpdateFileMutationCreator.php index 2080cce39..1a902072a 100644 --- a/_legacy/GraphQL/UpdateFileMutationCreator.php +++ b/_legacy/GraphQL/UpdateFileMutationCreator.php @@ -18,7 +18,7 @@ /** * Handles create and update * @skipUpgrade - * @deprecated 1.8.0 Use _graphql directory functionality instead + * @deprecated 1.8.0 Use the latest version of graphql instead */ class UpdateFileMutationCreator extends MutationCreator implements OperationResolver { @@ -30,7 +30,7 @@ class UpdateFileMutationCreator extends MutationCreator implements OperationReso public function __construct(Manager $manager = null) { - Deprecation::notice('1.8.0', 'Use _graphql directory functionality instead', Deprecation::SCOPE_CLASS); + Deprecation::notice('1.8.0', 'Use the latest version of graphql instead', Deprecation::SCOPE_CLASS); $this->accessor = new CaseInsensitiveFieldAccessor(); parent::__construct($manager);