1
<?php
2

3
namespace Nuwave\Lighthouse\Events;
4

5
use Nuwave\Lighthouse\Schema\AST\DocumentAST;
6

7
/**
8
 * Fires after the AST was built but before the executable schema is built.
9
 *
10
 * Listeners may mutate the $documentAST and make programmatic
11
 * changes to the schema.
12
 *
13
 * Only fires once if schema caching is active.
14
 */
15
class ManipulateAST
16
{
17
    /**
18
     * The AST that can be manipulated.
19
     *
20
     * @var \Nuwave\Lighthouse\Schema\AST\DocumentAST
21
     */
22
    public $documentAST;
23

24 1
    public function __construct(DocumentAST &$documentAST)
25
    {
26 1
        $this->documentAST = $documentAST;
27
    }
28
}

Read our documentation on viewing source code .

Loading