Skip to content

Commit

Permalink
ENH Add generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 11, 2024
1 parent 7fd6f05 commit f36fc53
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Extensions/ClientConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

namespace SilverStripe\GraphQL\Extensions;

use SilverStripe\Admin\LeftAndMain;
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Extension;
use SilverStripe\GraphQL\Controller;

/**
* @extends Extension<LeftAndMain>
*/
class ClientConfigProvider extends Extension
{
public function updateClientConfig(array &$config): void
Expand Down
4 changes: 4 additions & 0 deletions src/Extensions/DevBuildExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
use SilverStripe\Core\Injector\Injector;
use SilverStripe\GraphQL\Dev\Build;
use SilverStripe\GraphQL\Schema\Logger;
use SilverStripe\ORM\DatabaseAdmin;
use SilverStripe\ORM\DataExtension;

/**
* @extends DataExtension<DatabaseAdmin>
*/
class DevBuildExtension extends DataExtension
{
use Configurable;
Expand Down
2 changes: 2 additions & 0 deletions src/Extensions/QueryRecorderExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
/**
* 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>
*/
class QueryRecorderExtension extends DataExtension
{
Expand Down
4 changes: 4 additions & 0 deletions src/Extensions/TestSessionEnvironmentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
use SilverStripe\GraphQL\Schema\SchemaBuilder;
use SilverStripe\GraphQL\Schema\Exception\EmptySchemaException;
use SilverStripe\GraphQL\Dev\Benchmark;
use SilverStripe\TestSession\TestSessionEnvironment;

/**
* @extends Extension<TestSessionEnvironment>
*/
class TestSessionEnvironmentExtension extends Extension
{
/**
Expand Down

0 comments on commit f36fc53

Please sign in to comment.