Skip to content

Commit

Permalink
API Use updated Versioned and Staged classes
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 29, 2024
1 parent d90143c commit b826516
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ app:
- App\Model\*
extensionLoader:
include:
- SilverStripe\Versioned\Versioned
- SilverStripe\Versioned\Mode\Versioned
filepathLoader:
exclude:
- app/src/Model/*.secret.php
Expand Down Expand Up @@ -277,7 +277,7 @@ By default, four loaders are provided to you to help gather specific classnames:

- **Identifier**: `extensionLoader`
- **Description**: Include or exclude any class that has a given extension applied
- **Example**: `include: [SilverStripe\Versioned\Versioned]`
- **Example**: `include: [SilverStripe\Versioned\Mode\Versioned]`

#### By filepath

Expand Down
2 changes: 1 addition & 1 deletion src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use SilverStripe\GraphQL\Schema\SchemaBuilder;
use SilverStripe\Security\Member;
use SilverStripe\Security\Permission;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use BadMethodCallException;
use SilverStripe\Dev\Backtrace;
use SilverStripe\Core\ClassInfo;
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/AssetAdmin/Resolvers/AssetAdminResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use SilverStripe\GraphQL\Schema\DataObject\FieldAccessor;
use SilverStripe\ORM\DataList;
use SilverStripe\Model\List\Filterable;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use InvalidArgumentException;

class AssetAdminResolver
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/AssetAdmin/Resolvers/FolderTypeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DB;
use SilverStripe\Model\List\Sortable;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use InvalidArgumentException;
use Exception;
use Closure;
Expand Down
4 changes: 2 additions & 2 deletions src/Modules/AssetAdmin/Resolvers/PublicationResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use SilverStripe\Assets\File;
use SilverStripe\GraphQL\QueryHandler\QueryHandler;
use SilverStripe\GraphQL\QueryHandler\UserContextProvider;
use SilverStripe\Versioned\RecursivePublishable;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Staged\RecursivePublishable;
use SilverStripe\Versioned\Mode\Versioned;
use InvalidArgumentException;

class PublicationResolver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use SilverStripe\Core\Validation\ValidationException;
use SilverStripe\Security\Member;
use SilverStripe\GraphQL\Modules\Versioned\Resolvers\VersionedResolver;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use SilverStripe\Model\ModelData;

// GraphQL dependency is optional in versioned,
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Versioned/Operations/CopyToStageCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use SilverStripe\GraphQL\Schema\Interfaces\OperationCreator;
use SilverStripe\GraphQL\Schema\Interfaces\SchemaModelInterface;
use SilverStripe\GraphQL\Modules\Versioned\Resolvers\VersionedResolver;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use SilverStripe\Model\ModelData;

// GraphQL dependency is optional in versioned,
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Versioned/Operations/RollbackCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use SilverStripe\GraphQL\Schema\Interfaces\OperationCreator;
use SilverStripe\GraphQL\Schema\Interfaces\SchemaModelInterface;
use SilverStripe\GraphQL\Modules\Versioned\Resolvers\VersionedResolver;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use SilverStripe\Model\ModelData;

// GraphQL dependency is optional in versioned,
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Versioned/Plugins/UnpublishOnDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use Exception;
use Closure;
use SilverStripe\Model\ModelData;
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Versioned/Plugins/VersionedDataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use SilverStripe\Model\List\Sortable;
use SilverStripe\Security\Member;
use SilverStripe\GraphQL\Modules\Versioned\Resolvers\VersionedResolver;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use Closure;
use SilverStripe\Model\ModelData;

Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Versioned/Plugins/VersionedRead.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use SilverStripe\GraphQL\Schema\Interfaces\ModelQueryPlugin;
use SilverStripe\GraphQL\Schema\Schema;
use SilverStripe\GraphQL\Modules\Versioned\Resolvers\VersionedResolver;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use SilverStripe\Model\ModelData;

// GraphQL dependency is optional in versioned,
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Versioned/Resolvers/VersionFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\RelationList;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use InvalidArgumentException;
use DateTime;

Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Versioned/Resolvers/VersionedResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use SilverStripe\GraphQL\Modules\Versioned\Operations\RollbackCreator;
use SilverStripe\GraphQL\Modules\Versioned\Plugins\VersionedDataObject;
use SilverStripe\GraphQL\Modules\Versioned\Plugins\VersionedRead;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use Exception;
use Closure;
use InvalidArgumentException;
Expand Down
2 changes: 1 addition & 1 deletion tests/Fake/FakeProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;

class FakeProduct extends DataObject implements TestOnly
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fake/FakeReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\Security\Member;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;

class FakeReview extends DataObject implements TestOnly
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fake/FakeSiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;

class FakeSiteTree extends DataObject implements TestOnly
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use SilverStripe\Assets\File;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\RecursivePublishable;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Staged\RecursivePublishable;
use SilverStripe\Versioned\Mode\Versioned;

/**
* @mixin RecursivePublishable
Expand Down
4 changes: 2 additions & 2 deletions tests/Modules/Versioned/Fake/Fake.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\RecursivePublishable;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Staged\RecursivePublishable;
use SilverStripe\Versioned\Mode\Versioned;

/**
* @property string $Name
Expand Down
2 changes: 1 addition & 1 deletion tests/Modules/Versioned/Fake/FakeDataObjectStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;

class FakeDataObjectStub extends DataObject implements TestOnly
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use SilverStripe\GraphQL\Modules\Versioned\Types\VersionedStage;
use SilverStripe\GraphQL\Tests\Modules\Versioned\Fake\Fake;
use SilverStripe\GraphQL\Tests\Modules\Versioned\Plugins\UnversionedWithField;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;

// Versioned dependency is optional
// and the following implementation relies on existence of this class (in Versioned)
Expand Down
2 changes: 1 addition & 1 deletion tests/Modules/Versioned/Plugins/VersionedReadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use SilverStripe\GraphQL\Modules\Versioned\Resolvers\VersionedResolver;
use SilverStripe\GraphQL\Modules\Versioned\Types\VersionedInputType;
use SilverStripe\GraphQL\Tests\Modules\Versioned\Fake\Fake;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;

// Versioned dependency is optional
// and the following implementation relies on existence of this class (in Versioned)
Expand Down
2 changes: 1 addition & 1 deletion tests/Modules/Versioned/Resolvers/VersionedFiltersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use SilverStripe\Dev\SapphireTest;
use SilverStripe\GraphQL\Resolvers\VersionFilters;
use SilverStripe\GraphQL\Tests\Modules\Versioned\Fake\Fake;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;

// Versioned dependency is optional
// and the following implementation relies on existence of this class (in Versioned)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use SilverStripe\Security\Member;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\Security\Security;
use SilverStripe\Versioned\Versioned;
use SilverStripe\Versioned\Mode\Versioned;
use SilverStripe\GraphQL\Schema\Schema;
use GraphQL\Type\Definition\ResolveInfo;
use SilverStripe\GraphQL\Tests\Modules\Versioned\Fake\Fake;
Expand Down

0 comments on commit b826516

Please sign in to comment.