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 66
77use GraphQL \Type \Definition \TypeWithFields ;
88use GraphQL \Utils \SchemaPrinter ;
9+ use Symfony \Component \Console \Attribute \AsCommand ;
910use Symfony \Component \Console \Command \Command ;
1011use Symfony \Component \Console \Input \InputInterface ;
1112use Symfony \Component \Console \Input \InputOption ;
1617/**
1718 * Shamelessly stolen from Api Platform
1819 */
20+ #[AsCommand('graphqlite:dump-schema ' )]
1921class DumpSchemaCommand extends Command
2022{
21- protected static $ defaultName = 'graphqlite:dump-schema ' ;
22-
2323 /**
2424 * @var Schema
2525 */
Original file line number Diff line number Diff line change 88
99class Configuration implements ConfigurationInterface
1010{
11+ /**
12+ * @return TreeBuilder
13+ */
1114 public function getConfigTreeBuilder ()
1215 {
1316 $ treeBuilder = new TreeBuilder ('graphqlite ' );
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ public function __construct(RequestStack $requestStack)
1919 $ this ->requestStack = $ requestStack ;
2020 }
2121
22+ /**
23+ * @return string
24+ */
2225 public function getBySchema ($ name )
2326 {
2427 if ('default ' === $ name ) {
@@ -31,6 +34,9 @@ public function getBySchema($name)
3134 throw GraphQLEndpointInvalidSchemaException::forSchemaAndResolver ($ name , self ::class);
3235 }
3336
37+ /**
38+ * @return string
39+ */
3440 public function getDefault ()
3541 {
3642 return $ this ->getBySchema ('default ' );
You can’t perform that action at this time.
0 commit comments