new Deps
This commit is contained in:
+3
-34
@@ -2,47 +2,16 @@
|
||||
|
||||
namespace Nuwave\Lighthouse\Console;
|
||||
|
||||
class QueryCommand extends LighthouseGeneratorCommand
|
||||
class QueryCommand extends FieldGeneratorCommand
|
||||
{
|
||||
/**
|
||||
* The name of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name = 'lighthouse:query';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Create a class for a single field on the root Query type.';
|
||||
|
||||
/**
|
||||
* The type of class being generated.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $type = 'Query';
|
||||
|
||||
/**
|
||||
* Get the default namespace for the class.
|
||||
*
|
||||
* @param string $rootNamespace
|
||||
* @return string
|
||||
*/
|
||||
protected function getDefaultNamespace($rootNamespace): string
|
||||
protected function namespaceConfigKey(): string
|
||||
{
|
||||
return config('lighthouse.namespaces.queries');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the stub file for the generator.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function getStub(): string
|
||||
{
|
||||
return __DIR__.'/stubs/field.stub';
|
||||
return 'queries';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user