-
Notifications
You must be signed in to change notification settings - Fork 1
/
Config.php
33 lines (30 loc) · 1.06 KB
/
Config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php declare(strict_types = 1);
namespace LastDragon_ru\LaraASP\GraphQL\Builder;
use LastDragon_ru\LaraASP\Core\Application\Configuration\Configuration;
use LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\Operator;
use Nuwave\Lighthouse\Schema\Directives\RenameDirective;
class Config extends Configuration {
public function __construct(
/**
* The list of the directives which should be copied from the original
* field into the generated `input` field.
*
* Important notes:
* - All other directives except {@see Operator} (for the current
* directive) will be ignored.
* - There are no any checks that directive can be used on
* `INPUT_FIELD_DEFINITION`.
* - The `instanceof` operator is used to check.
* - Applies for Implicit types only.
*
* @see Operator
*
* @var list<class-string>
*/
public array $allowedDirectives = [
RenameDirective::class,
],
) {
parent::__construct();
}
}