Skip to content

Commit

Permalink
Merge pull request #599 from creative-commoners/pulls/6/replace-exten…
Browse files Browse the repository at this point in the history
…sion-subclasses

API Replace Extension subclasses
  • Loading branch information
GuySartorelli authored Aug 28, 2024
2 parents e251814 + 0ccfc13 commit 68bfbb9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/Extensions/DevBuildExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
use SilverStripe\GraphQL\Dev\Build;
use SilverStripe\GraphQL\Schema\Logger;
use SilverStripe\ORM\DatabaseAdmin;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;

/**
* @extends DataExtension<DatabaseAdmin>
* @extends Extension<DatabaseAdmin>
*/
class DevBuildExtension extends DataExtension
class DevBuildExtension extends Extension
{
use Configurable;

Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/QueryRecorderExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
namespace SilverStripe\GraphQL\Extensions;

use SilverStripe\Core\Injector\Injectable;
use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataQuery;
use SilverStripe\ORM\Queries\SQLSelect;

/**
* Attaches itself to {@see DataQuery} and records any classes that are queried within a closure context.
* Allows code to measure and detect affected classes within any operation. E.g. for caching.
*
* @extends DataExtension<DataObject>
* @extends Extension<DataObject>
*/
class QueryRecorderExtension extends DataExtension
class QueryRecorderExtension extends Extension
{
use Injectable;

Expand Down
4 changes: 2 additions & 2 deletions tests/Fake/Extensions/FakeExtension1.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

namespace SilverStripe\GraphQL\Tests\Fake\Extensions;

use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;

class FakeExtension1 extends DataExtension
class FakeExtension1 extends Extension
{

}
4 changes: 2 additions & 2 deletions tests/Fake/Extensions/FakeExtension2.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

namespace SilverStripe\GraphQL\Tests\Fake\Extensions;

use SilverStripe\ORM\DataExtension;
use SilverStripe\Core\Extension;

class FakeExtension2 extends DataExtension
class FakeExtension2 extends Extension
{

}

0 comments on commit 68bfbb9

Please sign in to comment.