1 |
<?php
|
|
2 |
|
|
3 |
namespace Nuwave\Lighthouse\Events; |
|
4 |
|
|
5 |
/**
|
|
6 |
* Fires before building the AST from the user-defined schema string.
|
|
7 |
*
|
|
8 |
* Listeners may return a schema string,
|
|
9 |
* which is added to the user schema.
|
|
10 |
*
|
|
11 |
* Only fires once if schema caching is active.
|
|
12 |
*/
|
|
13 |
class BuildSchemaString |
|
14 |
{
|
|
15 |
/**
|
|
16 |
* The root schema that was defined by the user.
|
|
17 |
*
|
|
18 |
* @var string
|
|
19 |
*/
|
|
20 |
public $userSchema; |
|
21 |
|
|
22 | 1 |
public function __construct(string $userSchema) |
23 |
{
|
|
24 | 1 |
$this->userSchema = $userSchema; |
25 |
}
|
|
26 |
}
|
Read our documentation on viewing source code .