File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use GraphQL \Type \Definition \TypeWithFields ;
8
8
use GraphQL \Utils \SchemaPrinter ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
use Symfony \Component \Console \Command \Command ;
10
11
use Symfony \Component \Console \Input \InputInterface ;
11
12
use Symfony \Component \Console \Input \InputOption ;
16
17
/**
17
18
* Shamelessly stolen from Api Platform
18
19
*/
20
+ #[AsCommand('graphqlite:dump-schema ' )]
19
21
class DumpSchemaCommand extends Command
20
22
{
21
- protected static $ defaultName = 'graphqlite:dump-schema ' ;
22
-
23
23
/**
24
24
* @var Schema
25
25
*/
Original file line number Diff line number Diff line change 8
8
9
9
class Configuration implements ConfigurationInterface
10
10
{
11
+ /**
12
+ * @return TreeBuilder
13
+ */
11
14
public function getConfigTreeBuilder ()
12
15
{
13
16
$ treeBuilder = new TreeBuilder ('graphqlite ' );
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ public function __construct(RequestStack $requestStack)
19
19
$ this ->requestStack = $ requestStack ;
20
20
}
21
21
22
+ /**
23
+ * @return string
24
+ */
22
25
public function getBySchema ($ name )
23
26
{
24
27
if ('default ' === $ name ) {
@@ -31,6 +34,9 @@ public function getBySchema($name)
31
34
throw GraphQLEndpointInvalidSchemaException::forSchemaAndResolver ($ name , self ::class);
32
35
}
33
36
37
+ /**
38
+ * @return string
39
+ */
34
40
public function getDefault ()
35
41
{
36
42
return $ this ->getBySchema ('default ' );
You can’t perform that action at this time.
0 commit comments