Guides
Tutorials
Export the GraphQL schema in Schema Definition Language (SDL).
class ApiPlatform\Symfony\Bundle\Command\GraphQlExportCommand extends Symfony\Component\Console\Command\Command
{
public __construct(ApiPlatform\GraphQl\Type\SchemaBuilderInterface $schemaBuilder)
protected configure(): null
protected execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int
public getDefaultName(): string
public getDefaultDescription(): string
public ignoreValidationErrors()
public setApplication(null|Symfony\Component\Console\Application $application)
public setHelperSet(Symfony\Component\Console\Helper\HelperSet $helperSet)
public getHelperSet(): Symfony\Component\Console\Helper\HelperSet
public getApplication(): Symfony\Component\Console\Application
public isEnabled(): bool
protected interact(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output)
protected initialize(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output)
public run(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int
public complete(Symfony\Component\Console\Completion\CompletionInput $input, Symfony\Component\Console\Completion\CompletionSuggestions $suggestions): null
public setCode(callable $code): Symfony\Component\Console\Command\Command
public mergeApplicationDefinition(bool $mergeArgs)
public setDefinition(Symfony\Component\Console\Input\InputDefinition|array $definition): Symfony\Component\Console\Command\Command
public getDefinition(): Symfony\Component\Console\Input\InputDefinition
public getNativeDefinition(): Symfony\Component\Console\Input\InputDefinition
public addArgument(string $name, null|int $mode, string $description, $default): Symfony\Component\Console\Command\Command
public addOption(string $name, null|array|string $shortcut, null|int $mode, string $description, $default): Symfony\Component\Console\Command\Command
public setName(string $name): Symfony\Component\Console\Command\Command
public setProcessTitle(string $title): Symfony\Component\Console\Command\Command
public getName(): string
public setHidden(bool $hidden): Symfony\Component\Console\Command\Command
public isHidden(): bool
public setDescription(string $description): Symfony\Component\Console\Command\Command
public getDescription(): string
public setHelp(string $help): Symfony\Component\Console\Command\Command
public getHelp(): string
public getProcessedHelp(): string
public setAliases(array<int, string> $aliases): Symfony\Component\Console\Command\Command
public getAliases(): array
public getSynopsis(bool $short): string
public addUsage(string $usage): Symfony\Component\Console\Command\Command
public getUsages(): array
public getHelper(string $name): Symfony\Component\Console\Helper\HelperInterface
}
class ApiPlatform\Symfony\Bundle\Command\GraphQlExportCommand extends Symfony\Component\Console\Command\Command
{
public __construct(ApiPlatform\GraphQl\Type\SchemaBuilderInterface $schemaBuilder)
protected configure(): null
protected execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int
public getDefaultName(): string
public getDefaultDescription(): string
public ignoreValidationErrors()
public setApplication(null|Symfony\Component\Console\Application $application)
public setHelperSet(Symfony\Component\Console\Helper\HelperSet $helperSet)
public getHelperSet(): Symfony\Component\Console\Helper\HelperSet
public getApplication(): Symfony\Component\Console\Application
public isEnabled(): bool
protected interact(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output)
protected initialize(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output)
public run(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int
public complete(Symfony\Component\Console\Completion\CompletionInput $input, Symfony\Component\Console\Completion\CompletionSuggestions $suggestions): null
public setCode(callable $code): Symfony\Component\Console\Command\Command
public mergeApplicationDefinition(bool $mergeArgs)
public setDefinition(Symfony\Component\Console\Input\InputDefinition|array $definition): Symfony\Component\Console\Command\Command
public getDefinition(): Symfony\Component\Console\Input\InputDefinition
public getNativeDefinition(): Symfony\Component\Console\Input\InputDefinition
public addArgument(string $name, null|int $mode, string $description, $default): Symfony\Component\Console\Command\Command
public addOption(string $name, null|array|string $shortcut, null|int $mode, string $description, $default): Symfony\Component\Console\Command\Command
public setName(string $name): Symfony\Component\Console\Command\Command
public setProcessTitle(string $title): Symfony\Component\Console\Command\Command
public getName(): string
public setHidden(bool $hidden): Symfony\Component\Console\Command\Command
public isHidden(): bool
public setDescription(string $description): Symfony\Component\Console\Command\Command
public getDescription(): string
public setHelp(string $help): Symfony\Component\Console\Command\Command
public getHelp(): string
public getProcessedHelp(): string
public setAliases(array<int, string> $aliases): Symfony\Component\Console\Command\Command
public getAliases(): array
public getSynopsis(bool $short): string
public addUsage(string $usage): Symfony\Component\Console\Command\Command
public getUsages(): array
public getHelper(string $name): Symfony\Component\Console\Helper\HelperInterface
}
string $defaultName
string $defaultName
string $defaultDescription
string $defaultDescription
public __construct(ApiPlatform\GraphQl\Type\SchemaBuilderInterface $schemaBuilder)
public __construct(ApiPlatform\GraphQl\Type\SchemaBuilderInterface $schemaBuilder)
schemaBuilder | ApiPlatform\GraphQl\Type\SchemaBuilderInterface |
Configures the current command.
protected configure(): null
protected configure(): null
null
Executes the current command.This method is not abstract because you can use this class as a concrete class. In this case, instead of defining the execute() method, you set the code to execute by passing a Closure to the setCode() method.
protected execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int
protected execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int
input | Symfony\Component\Console\Input\InputInterface | |
output | Symfony\Component\Console\Output\OutputInterface |
int
public getDefaultName(): string
public getDefaultName(): string
string