Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Replace Extension subclasses #599

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
{

}
Loading